symmetric / create_namespace flags were only working if last argument (#11)

Move defaults outside the while loop so they are not constantly reset

Fixes #10
This commit is contained in:
Luke Stephenson 2020-05-14 17:35:48 +10:00 committed by GitHub
parent 06652d7e8b
commit 45fd2c6878
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,14 +36,13 @@ Usage:
EOF
}
symmetric=false
create_namespace=false
while [[ $# -gt 0 ]]
do
key="$1"
symmetric=false
create_namespace=false
case $key in
-n|--namespace)
namespace="$2"