diff options
| author | JSON Derulo <136133082+xXJSONDeruloXx@users.noreply.github.com> | 2025-01-21 18:52:51 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-21 18:52:51 -0500 |
| commit | c1ebbc4b02c2e4fcb81661f2c0e87cd4f3f71147 (patch) | |
| tree | 646a2a8fb4e099e9600f5bddb94607aaa8b69c24 /.vscode/config.sh | |
| download | Decky-Framegen-c1ebbc4b02c2e4fcb81661f2c0e87cd4f3f71147.tar.gz Decky-Framegen-c1ebbc4b02c2e4fcb81661f2c0e87cd4f3f71147.zip | |
Initial commit
Diffstat (limited to '.vscode/config.sh')
| -rwxr-xr-x | .vscode/config.sh | 12 |
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 |
