From ec0d716bdebdb26ed6af9b47629e96ce205f4f2b Mon Sep 17 00:00:00 2001 From: b1ek Date: Wed, 22 Mar 2023 20:35:22 +1000 Subject: [PATCH] fix install and build script --- install_and_build.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/install_and_build.sh b/install_and_build.sh index f319490..1da5dc3 100755 --- a/install_and_build.sh +++ b/install_and_build.sh @@ -5,11 +5,7 @@ yarn install yarn run build while true; do - read -p "Do you want to copy dist to ../../public/static/dist? (Y/n): " yn - case $yn in - [Yy]* cp dist ../../public/static/dist; break;; - [Nn]* break;; - []* ) cp dist ../../public/static/dist; break;; - * ) echo "(Y/n)";; - esac + read -p "Do you want to copy dist to ../../public/static? (type n for no): " answer + if [ $answer = 'n' ] || [ $answer = 'N' ]; then exit 0; fi + cp dist ../../public/static done