From e8139af7bbb1cbf106737679449bb92515f6fd76 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 16 Aug 2023 18:14:06 +0800 Subject: updated --- setup.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'setup.sh') 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 & -- cgit v1.2.3