support bool for snap

This commit is contained in:
Boshi Lian 2019-01-09 07:40:39 +00:00
parent e544b57dbc
commit c862b9e04c

View file

@ -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