diff --git a/doc.go b/doc.go index d83d321..13c64af 100644 --- a/doc.go +++ b/doc.go @@ -297,9 +297,9 @@ to parse the response as such to achieve what you need: resp=$(echo 'load' | nc -U /tmp/lf.${USER}.sock) mode=$(echo $resp | cut -d' ' -f1) list=$(echo $resp | cut -d' ' -f2-) - if [ $mode == 'copy' ]; then + if [ $mode = 'copy' ]; then # do something with the $list - elif [ $mode == 'move' ]; then + elif [ $mode = 'move' ]; then # do something else with the $list fi diff --git a/docstring.go b/docstring.go index 07d4290..d6cf7f6 100644 --- a/docstring.go +++ b/docstring.go @@ -310,9 +310,9 @@ need to parse the response as such to achieve what you need: resp=$(echo 'load' | nc -U /tmp/lf.${USER}.sock) mode=$(echo $resp | cut -d' ' -f1) list=$(echo $resp | cut -d' ' -f2-) - if [ $mode == 'copy' ]; then + if [ $mode = 'copy' ]; then # do something with the $list - elif [ $mode == 'move' ]; then + elif [ $mode = 'move' ]; then # do something else with the $list fi