summaryrefslogtreecommitdiff
path: root/.vscode/config.sh
diff options
context:
space:
mode:
authorTrainDoctor <11465594+TrainDoctor@users.noreply.github.com>2022-06-14 15:01:10 -0700
committerTrainDoctor <11465594+TrainDoctor@users.noreply.github.com>2022-06-14 15:01:10 -0700
commitb0d5050896c5ba7a597f82e675c3fc68185eb2cd (patch)
treefe8639f0d162536bc39ff920ecb490594b69bb17 /.vscode/config.sh
parentd67d18ab7766e8dbb79fd48ac347d601f82d3332 (diff)
downloaddecky-bazzite-buddy-b0d5050896c5ba7a597f82e675c3fc68185eb2cd.tar.gz
decky-bazzite-buddy-b0d5050896c5ba7a597f82e675c3fc68185eb2cd.zip
This is broken but new job awaits
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 0000000..b45c794
--- /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