Skip to content

Commit

Permalink
feature: add survey script
Browse files Browse the repository at this point in the history
  • Loading branch information
askonev committed Mar 13, 2024
1 parent 847885d commit 513f271
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/survey.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

while true; do

read -p "Do you want to proceed? (yes/no) " yn

case $yn in
yes ) echo ok, we will proceed;
break;;
no ) echo exiting...;
exit;;
* ) echo invalid response;;
esac

done
5 changes: 5 additions & 0 deletions restore_backup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash

echo 'The script restores the default state of the \
public schema, which will delete all data'

source lib/survey.sh

# Correctly configure aws cli before running this script
# `aws configure`

Expand Down

0 comments on commit 513f271

Please sign in to comment.