diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2020-09-19 04:39:32 -0400 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2020-11-20 22:51:10 -0500 |
commit | 41346f5871f10d261f9202e8d66a8e1c04124a32 (patch) | |
tree | 3fca30b52319113fe24cdaf81e6ff7028f8657a1 /test | |
parent | 8603c69f9009cbd52159e95af394570069a6e423 (diff) |
housekeeping
Diffstat (limited to 'test')
-rwxr-xr-x | test/testenv | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/testenv b/test/testenv index ee89f4c..afa5559 100755 --- a/test/testenv +++ b/test/testenv @@ -3,21 +3,21 @@ set -e # Parse the arguments + if [[ $# > 0 ]]; then NETWORK=true SUDO=true while [[ $# -gt 0 ]]; do - case "$1" in - --no-network) shift; unset NETWORK;; - --network) shift; NETWORK=true;; - --no-sudo) shift; unset SUDO;; - --sudo) shift; SUDO=true;; - --) shift; break;; - *) break;; - esac + case "$1" in + --no-network) shift; unset NETWORK;; + --network) shift; NETWORK=true;; + --no-sudo) shift; unset SUDO;; + --sudo) shift; SUDO=true;; + --) shift; break;; + *) break;; + esac done export NETWORK SUDO - - if [[ $# == 0 ]]; then + else echo 'You need to run testenv with arguments!' >&2 exit 1 fi |