diff --git a/lib/survey.sh b/lib/survey.sh index 174c19d..8ce58a8 100755 --- a/lib/survey.sh +++ b/lib/survey.sh @@ -2,7 +2,8 @@ while true; do -read -p "Do you want to proceed? (yes/no) " yn +echo "Do you want to proceed? (yes/no) " +read -r yn case $yn in yes ) echo ok, we will proceed; diff --git a/restore_backup.sh b/restore_backup.sh index 1607f8d..c4583e4 100755 --- a/restore_backup.sh +++ b/restore_backup.sh @@ -3,6 +3,7 @@ echo 'The script restores the default state of the \ public schema, which will delete all data' +# shellcheck source=survey.sh source lib/survey.sh # Correctly configure aws cli before running this script