Skip to content

Commit 3aaeb16

Browse files
committed
Update `` to $(), doublequote bare variable
1 parent 66e5e13 commit 3aaeb16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/git-switch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
#
88
# Source: https://github.com/Andrew565/dotfiles
99

10-
BRANCH=`git branch | grep "$1"`
11-
exec git checkout $BRANCH
10+
BRANCH=$(git branch | grep "$1")
11+
exec git checkout "$BRANCH"

0 commit comments

Comments
 (0)