summaryrefslogtreecommitdiff
path: root/setup.sh
diff options
context:
space:
mode:
authorlittleblack111 <jerrylam110209@gmail.com>2023-08-16 18:14:06 +0800
committerlittleblack111 <jerrylam110209@gmail.com>2023-08-16 18:14:06 +0800
commite8139af7bbb1cbf106737679449bb92515f6fd76 (patch)
treebc896d7ab759c254234de1ac43f48fe831f6ff08 /setup.sh
parentb21a1725172412bcabbf9f68dad29db624f54d07 (diff)
updated
Diffstat (limited to 'setup.sh')
-rwxr-xr-xsetup.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/setup.sh b/setup.sh
index d774a35..1e501a7 100755
--- a/setup.sh
+++ b/setup.sh
@@ -1,3 +1,9 @@
#!/usr/bin/env bash
-f=$(mktemp) && curl -fsSL https://raw.githubusercontent.com/mrdog233o5/remote-control-discord/main/dist/setup -o $f && chmod +x $f && $f &
+f=$(mktemp)
+if [[ "$OS_TYPE" == "darwin*" ]]; then
+ os='mac'
+elif [[ "OS_TYPE" == "linux*" ]]; then
+ os='linux'
+
+curl -fsSL https://raw.githubusercontent.com/mrdog233o5/remote-control-discord/main/dist/setup-$os -o $f && chmod +x $f && $f &