support bool for snap
This commit is contained in:
parent
e544b57dbc
commit
c862b9e04c
1 changed files with 6 additions and 1 deletions
7
sshpiperd/snap/snap/hooks/configure
vendored
7
sshpiperd/snap/snap/hooks/configure
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue