diff --git a/testspr/test.sh b/testspr/test.sh index 8597f94f..3488d6a6 100755 --- a/testspr/test.sh +++ b/testspr/test.sh @@ -48,7 +48,7 @@ while [ -n "$1" ]; do --gcc-version) gcc_version="$2"; shift 2;; --clang-version) clang_version="$2"; shift 2;; -D|--define) user_macros=(${user_macros[@]} "$2"); shift 2;; - -f|--force) force=1; shift 2;; + -f|--force) force=1; shift;; --) shift; break;; *) echo >&2 -e ": \e[31munknown option($1) used.\e[m"; exit 1;; esac diff --git a/tools/darkroom/darkcult.sh b/tools/darkroom/darkcult.sh index 0aa4ed84..9a318939 100755 --- a/tools/darkroom/darkcult.sh +++ b/tools/darkroom/darkcult.sh @@ -31,7 +31,7 @@ while [ -n "$1" ]; do -h|--height) height=$2; shift 2;; -W|--tile-width) tile_width=$2; shift 2;; -H|--tile-height) tile_height=$2; shift 2;; - -f|--force) force=1; shift 2;; + -f|--force) force=1; shift;; --) shift; break;; *) echo >&2 -e ": \e[31munknown option($1) used.\e[m"; exit 1;; esac