From 20f38b96f1540f1283c1fa01371f3e162f83fef9 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Sat, 25 Feb 2017 19:29:47 +0300 Subject: [PATCH] update documentation --- doc.go | 4 ++-- docstring.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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