From d8275b18f828df9026631062031c2b91d41afae8 Mon Sep 17 00:00:00 2001 From: bolero-MURAKAMI Date: Fri, 20 Sep 2013 01:39:16 +0900 Subject: [PATCH] fix script --- testspr/test.sh | 2 +- tools/darkroom/darkcult.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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