Skip to content

Commit

Permalink
Adding quotes around $1
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Smith committed Aug 27, 2014
1 parent e20ce81 commit 1b4d426
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/bbedit/bbedit.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ alias bbd=bbdiff
# If bb is passed a file, open it in BBEdit
#
function bb() {
if [[ -z $1 ]]
if [[ -z "$1" ]]
then
bbedit --launch
else
bbedit $1
if [[ -d $1 ]]
bbedit "$1"
if [[ -d "$1" ]]
then
cd $1
cd "$1"
fi
fi
}

0 comments on commit 1b4d426

Please sign in to comment.