aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorZe Libertine Gamer <zlg@zlg.space>2016-10-24 07:07:11 -0700
committerZe Libertine Gamer <zlg@zlg.space>2016-10-24 07:07:11 -0700
commit7f735dbe7544bf2837b1fa5fac38d3f001a8bb99 (patch)
tree6c315123665e02a1e0ee36347ea28d3892478f22 /scripts
parentAdd quotes to correct behavior for arglist (diff)
downloadvgstash-7f735dbe7544bf2837b1fa5fac38d3f001a8bb99.tar.gz
vgstash-7f735dbe7544bf2837b1fa5fac38d3f001a8bb99.tar.bz2
vgstash-7f735dbe7544bf2837b1fa5fac38d3f001a8bb99.tar.xz
vgstash-7f735dbe7544bf2837b1fa5fac38d3f001a8bb99.zip
Correct run_again, add recursion
Loops and functions -- oh my, what a useful combination. :)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/updater.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/updater.sh b/scripts/updater.sh
index 8376b34..4197246 100755
--- a/scripts/updater.sh
+++ b/scripts/updater.sh
@@ -72,6 +72,10 @@ run_again() {
n|no)
exit
;;
+ *)
+ echo "Invalid. Try [y]es or [n]o."
+ run_again
+ ;;
esac
}