aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté <mikisabate@gmail.com>2015-08-02 00:00:27 +0200
committerMiquel Sabaté <mikisabate@gmail.com>2015-08-02 00:00:27 +0200
commitbf76bf3643c173d11d7303452df47ce401db8a71 (patch)
treeabf7a9648807b887c0b7cea2b92d4c55e399a080
parent112819777c7f77a47a97474dee21bbe1cfe531ec (diff)
downloadg-bf76bf3643c173d11d7303452df47ce401db8a71.tar.gz
g-bf76bf3643c173d11d7303452df47ce401db8a71.zip
Use '=', not '=='
-rw-r--r--g.sh6
1 files 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 <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"