From c604a3349c419c87b69a3388e2ce87df50269851 Mon Sep 17 00:00:00 2001 From: MaxSorokin Date: Wed, 13 Mar 2024 17:33:29 +0300 Subject: [PATCH] fix: shellcheck rules [SC1091] [SC2162] --- lib/survey.sh | 3 ++- restore_backup.sh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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..90181d1 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=lib/survey.sh source lib/survey.sh # Correctly configure aws cli before running this script