From 94fedb09bee93abcae2cc47b3ccf08e93f08a724 Mon Sep 17 00:00:00 2001 From: xnacly Date: Mon, 19 Jul 2021 19:05:17 +0200 Subject: [PATCH] updated not working open vsc comfirmation --- scripts/setup/setup.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/setup/setup.sh b/scripts/setup/setup.sh index 72b0884..f120dce 100755 --- a/scripts/setup/setup.sh +++ b/scripts/setup/setup.sh @@ -61,11 +61,13 @@ git clone https://github.com/fosscord/react-native-withcss react-native-withcss echo '{"folders":[{"path":"overview"},{"path":"cdn"},{"path":"api"},{"path":"gateway"},{"path":"media"},{"path":"server-util"},{"path":"ui"},{"path":"client"},{"path":"plugins"},{"path":"themes"},{"path":"landingpage"},{"path":"dashboard"},{"path":"support"},{"path":"css-mediaquery"},{"path":"react-native-withcss"}]}' >> fosscord.code-workspace -echo "Do you want to launch VS Code workspace?" -select yn in "y" "n"; do + +while true; do + echo "Do you wish to launch the VSCode workspace?" + read -p "[y/n]: " yn case $yn in - Yes ) echo Opening VS Code Workspace ; code fosscord.code-workspace ; break;; - No ) break;; + [Yy]* ) echo Opening VS Code Workspace ; code fosscord.code-workspace ; break;; + [Nn]* ) break;; esac done