summaryrefslogtreecommitdiff
path: root/.vscode/config.sh
diff options
context:
space:
mode:
authorAAGaming <aagaming00@protonmail.com>2022-06-17 18:43:53 -0400
committerGitHub <noreply@github.com>2022-06-17 18:43:53 -0400
commit99b4b939bdd2140aecf19ddb09a59b44e9cd117d (patch)
treed1a4c154101cb43b34c782a310e9c0699c9cf005 /.vscode/config.sh
parenta95bf94d878f61869895bb22cbff1b4f524c5dca (diff)
downloaddecky-loader-99b4b939bdd2140aecf19ddb09a59b44e9cd117d.tar.gz
decky-loader-99b4b939bdd2140aecf19ddb09a59b44e9cd117d.zip
Implement React-based plugin store (#81)
Co-authored-by: TrainDoctor <11465594+TrainDoctor@users.noreply.github.com> Co-authored-by: WerWolv <werwolv98@gmail.com>
Diffstat (limited to '.vscode/config.sh')
-rwxr-xr-x.vscode/config.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/.vscode/config.sh b/.vscode/config.sh
new file mode 100755
index 00000000..b45c7944
--- /dev/null
+++ b/.vscode/config.sh
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )";
+# printf "${SCRIPT_DIR}\n"
+# printf "$(dirname $0)\n"
+if ! [[ -e "${SCRIPT_DIR}/settings.json" ]]; then
+ printf '.vscode/settings.json does not exist. Creating it with default settings. Exiting afterwards. Run your task again.\n\n'
+ cp "${SCRIPT_DIR}/defsettings.json" "${SCRIPT_DIR}/settings.json"
+ exit 1
+else
+ printf '.vscode/settings.json does exist. Congrats.\n'
+ printf 'Make sure to change settings.json to match your deck.\n'
+fi \ No newline at end of file