update documentation

This commit is contained in:
Gokcehan 2017-02-25 19:29:47 +03:00
parent dbb250d232
commit 20f38b96f1
2 changed files with 4 additions and 4 deletions

4
doc.go
View File

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

View File

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