diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2020-07-14 01:35:02 -0400 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2022-01-18 17:29:35 +0100 |
commit | f61f91403fe843e6eaf934e733e9a1e13f8e7167 (patch) | |
tree | f4da5e448726cd245289ff022d22c62d3fabf583 /test | |
parent | 6735ea6816097fb596bad2d39af4686d98115398 (diff) |
whitespace
Diffstat (limited to 'test')
-rwxr-xr-x | test/testenv | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/test/testenv b/test/testenv index 11a46ee..ee89f4c 100755 --- a/test/testenv +++ b/test/testenv @@ -3,21 +3,21 @@ set -e # Parse the arguments - 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 - done - export NETWORK SUDO + 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 + done + export NETWORK SUDO - if [[ $# == 0 ]]; then + if [[ $# == 0 ]]; then echo 'You need to run testenv with arguments!' >&2 exit 1 fi |