summaryrefslogtreecommitdiff
path: root/.vscode
diff options
context:
space:
mode:
authorYao Chung Hu <30311066+FlashyReese@users.noreply.github.com>2023-06-05 03:40:58 +0800
committerGitHub <noreply@github.com>2023-06-04 12:40:58 -0700
commit625eaf2897c95267fa0fb795103861225fe12065 (patch)
treeb3ca8e576746af3a576239389795025b060eb70c /.vscode
parent4beeece5127a149efbd29394f09d68b04da4f9e8 (diff)
downloaddecky-bazzite-buddy-625eaf2897c95267fa0fb795103861225fe12065.tar.gz
decky-bazzite-buddy-625eaf2897c95267fa0fb795103861225fe12065.zip
Fix setup cli detection (#26)
Diffstat (limited to '.vscode')
-rwxr-xr-x.vscode/setup.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/.vscode/setup.sh b/.vscode/setup.sh
index 20dd336..1a9d22b 100755
--- a/.vscode/setup.sh
+++ b/.vscode/setup.sh
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
PNPM_INSTALLED="$(which pnpm)"
DOCKER_INSTALLED="$(which docker)"
-CLI_INSTALLED="$(test -f $(pwd)/cli/decky | echo "$?")"
+CLI_INSTALLED="$(pwd)/cli/decky"
# echo "$PNPM_INSTALLED"
# echo "$DOCKER_INSTALLED"
@@ -34,7 +34,7 @@ if [[ "$DOCKER_INSTALLED" =~ "which" ]]; then
echo "Docker is not currently installed, in order build plugins with a backend you will need to have Docker installed. Please install Docker via the preferred method for your distribution."
fi
-if [[ "$CLI_INSTALLED" > "0" ]] || [[ "$CLI_INSTALLED" < "0" ]]; then
+if ! test -f "$CLI_INSTALLED"; then
echo "The Decky CLI tool (binary file is just called "decky") is used to build your plugin as a zip file which you can then install on your Steam Deck to perform testing. We highly recommend you install it. Hitting enter now will run the script to install Decky CLI and extract it to a folder called cli in the current plugin directory. You can also type 'no' and hit enter to skip this but keep in mind you will not have a usable plugin without building it."
read run_cli_script
if [[ "$run_cli_script" =~ "n" ]]; then