Closed ufUNnxagpM closed 8 years ago
Boolean comparison is done without quotes, the same goes for creating the initial value.
[key]=false
[[ $var = false ]]
The script is written in bash, and [[ is the standard. It'd like to see that in the if
statement as well. You could also consider not using if
and going with [[ $var = bool ]] && echo "-d"
. I'll leave that to you though.
tl;dr
Unquote the booleans and use [[
instead of [
.
Looks good, thanks!
Added a few lines to allow the force docking option to be toggled via captainrc.