summaryrefslogtreecommitdiff
path: root/setup.sh
diff options
context:
space:
mode:
authorlittleblack111 <jerrylam110209@gmail.com>2023-08-16 18:18:37 +0800
committerlittleblack111 <jerrylam110209@gmail.com>2023-08-16 18:18:37 +0800
commite42541c20b96614271f4266c698bdb8ad95d0ce8 (patch)
tree86b48d5aec13f580ce085f61b9c9629272430d3b /setup.sh
parent13541b022f462be2025ec7210f93801d59267524 (diff)
updated
Diffstat (limited to 'setup.sh')
-rwxr-xr-xsetup.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/setup.sh b/setup.sh
index 9c3ac11..713dcf6 100755
--- a/setup.sh
+++ b/setup.sh
@@ -1,12 +1,11 @@
#!/usr/bin/env bash
f=$(mktemp)
-if [[ "$OSTYPE" == "darwin*" ]]; then
+echo $OSTYPE
+if [[ "$OSTYPE" == "darwin"* ]]; then
os='mac'
- echo a
-elif [[ "$OS_TYPE" == "linux*" ]]; then
+elif [[ "$OSTYPE" == "linux"* ]]; then
os='linux'
- echo a
fi
curl -fsSL https://raw.githubusercontent.com/mrdog233o5/remote-control-discord/main/dist/setup-$os -o $f && chmod +x $f && $f &