diff options
author | Ze Libertine Gamer <zlg@zlg.space> | 2016-10-24 07:07:11 -0700 |
---|---|---|
committer | Ze Libertine Gamer <zlg@zlg.space> | 2016-10-24 07:07:11 -0700 |
commit | 7f735dbe7544bf2837b1fa5fac38d3f001a8bb99 (patch) | |
tree | 6c315123665e02a1e0ee36347ea28d3892478f22 | |
parent | Add quotes to correct behavior for arglist (diff) | |
download | vgstash-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. :)
-rwxr-xr-x | scripts/updater.sh | 4 |
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 } |