Skip to content

Commit 40ab1f7

Browse files
committed
Correct if statement and order of args in Google Maps
1 parent b95fb89 commit 40ab1f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

commands/google-maps/google-maps.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
first_argument=${1// /+}
1515
second_argument=${2// /+}
1616

17-
if [$1 == ""]; then
17+
if [ "$1" = "" ]; then
1818
open "https://www.google.com/maps"
19-
elif [$2 == ""]; then
19+
elif [ "$2" = "" ]; then
2020
open "https://www.google.com/maps/search/$first_argument"
2121
else
22-
open "https://www.google.com/maps/dir/$second_argument/$first_argument"
22+
open "https://www.google.com/maps/dir/$first_argument/$second_argument"
2323
fi

0 commit comments

Comments
 (0)