aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-04-19 20:49:31 +0200
committerTeddy Wing2018-04-19 20:49:31 +0200
commit9909a132d5a855f69501d2258e29d8dab80ab522 (patch)
tree35bd0cd345f3c5f1ace6c4046edf65a8b254ce36
parent04d5752774cc1ebb97b1df11acb5f9eaf2fd443e (diff)
downloadredprine-9909a132d5a855f69501d2258e29d8dab80ab522.tar.bz2
Fix infinite loop when `--cache-only` argument given
If this command line argument was passed, the program would go into an infinite loop, prevented from finishing argument parsing.
-rwxr-xr-xredprine3
1 files changed, 3 insertions, 0 deletions
diff --git a/redprine b/redprine
index 4425ed1..8580479 100755
--- a/redprine
+++ b/redprine
@@ -304,6 +304,9 @@ function parse_arguments () {
;;
--cache-only)
CACHE_ONLY=1
+
+ shift
+ continue
;;
-h | --help)
print_usage