aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/wg-quick.bash
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/tools/wg-quick.bash5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tools/wg-quick.bash b/src/tools/wg-quick.bash
index 6edcd3a..243f35d 100755
--- a/src/tools/wg-quick.bash
+++ b/src/tools/wg-quick.bash
@@ -54,10 +54,9 @@ parse_options() {
}
read_bool() {
- local -n out="$1"
case "$2" in
- true) out=1 ;;
- false) out=0 ;;
+ true) printf -v "$1" 1 ;;
+ false) printf -v "$1" 0 ;;
*) die "\`$2' is neither true nor false"
esac
}