362f2a56d276aebfb8da4e3244994f69899bbdbd

Author
Chris Smith <csmith@bloomhealthco.com>
Committer
Chris Smith <csmith@bloomhealthco.com>
Date

Message

Adding quotes around $1

Diff

 1diff --git a/plugins/textastic/textastic.plugin.zsh b/plugins/textastic/textastic.plugin.zsh
 2index c3416213994f01607ca4395e1071be066a8cdf4a..f5901eae2fcfcaa6fdb460b2a9e6c11c29f2f538 100644
 3--- a/plugins/textastic/textastic.plugin.zsh
 4+++ b/plugins/textastic/textastic.plugin.zsh
 5@@ -4,14 +4,14 @@
 6 # If tt is passed a file, open it in Textastic
 7 #
 8 function tt() {
 9-    if [[ -z $1 ]]
10+    if [[ -z "$1" ]]
11     then
12         open -a "textastic.app"
13     else
14-        open -a "textastic.app" $1
15-        if [[ -d $1 ]]
16+        open -a "textastic.app" "$1"
17+        if [[ -d "$1" ]]
18         then
19-            cd $1
20+            cd "$1"
21         fi
22     fi
23 }