From bf76bf3643c173d11d7303452df47ce401db8a71 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Date: Sun, 2 Aug 2015 00:00:27 +0200 Subject: Use '=', not '==' --- g.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/g.sh b/g.sh index 09ff810..843313a 100644 --- a/g.sh +++ b/g.sh @@ -101,10 +101,10 @@ g() { __g_help ;; add) - if [ "$#" == "2" ]; then + if [ "$#" = "2" ]; then path=`pwd` else - if [ "$#" == "3" ]; then + if [ "$#" = "3" ]; then path=$3 else echo "usage: g add [path]" @@ -130,7 +130,7 @@ g() { ;; list) __g_get_shortcuts - if [[ "$#" == "2" && "$2" == "--keys" ]]; then + if [[ "$#" = "2" && "$2" = "--keys" ]]; then str="" for i in "${!__g_shortcuts[@]}"; do str="$str $i" -- cgit v1.2.3