From c862b9e04c5a5c3b3ced45ccd7198cdb44c86cf6 Mon Sep 17 00:00:00 2001 From: Boshi Lian Date: Wed, 9 Jan 2019 07:40:39 +0000 Subject: [PATCH] support bool for snap --- sshpiperd/snap/snap/hooks/configure | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sshpiperd/snap/snap/hooks/configure b/sshpiperd/snap/snap/hooks/configure index 42bc98c1..8f332dd8 100755 --- a/sshpiperd/snap/snap/hooks/configure +++ b/sshpiperd/snap/snap/hooks/configure @@ -10,7 +10,12 @@ for opt in $($bin daemon options); do if [ "$v" != "" ]; then v=$(eval echo $v) - args="$args --$opt=$v" + + if [ "$v" = "true" ];then + args="$args --$opt" + else + args="$args --$opt=$v" + fi # special default elif [ "$opt" = "upstream-workingdir" ]; then