summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2020-09-19 04:39:32 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2020-11-20 22:51:10 -0500
commit41346f5871f10d261f9202e8d66a8e1c04124a32 (patch)
tree3fca30b52319113fe24cdaf81e6ff7028f8657a1 /test
parent8603c69f9009cbd52159e95af394570069a6e423 (diff)
housekeeping
Diffstat (limited to 'test')
-rwxr-xr-xtest/testenv20
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