aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"