update documentation
This commit is contained in:
parent
dbb250d232
commit
20f38b96f1
4
doc.go
4
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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user