diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2020-09-19 04:39:32 -0400 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2022-01-18 17:29:36 +0100 |
commit | 232d080e889f92d0099c52ce9bf3cedc70008ca5 (patch) | |
tree | 08718d62671640555d2093fe5d5a08ba8b432230 /test | |
parent | f61f91403fe843e6eaf934e733e9a1e13f8e7167 (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 |