diff options
| author | Miquel Sabaté <mikisabate@gmail.com> | 2015-08-02 00:00:27 +0200 |
|---|---|---|
| committer | Miquel Sabaté <mikisabate@gmail.com> | 2015-08-02 00:00:27 +0200 |
| commit | bf76bf3643c173d11d7303452df47ce401db8a71 (patch) | |
| tree | abf7a9648807b887c0b7cea2b92d4c55e399a080 | |
| parent | 112819777c7f77a47a97474dee21bbe1cfe531ec (diff) | |
| download | g-bf76bf3643c173d11d7303452df47ce401db8a71.tar.gz g-bf76bf3643c173d11d7303452df47ce401db8a71.zip | |
Use '=', not '=='
| -rw-r--r-- | g.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 <name> [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" |
