Skip to content

Commit 5cd72d6

Browse files
committed
Quote bare variables to prevent globbing/word splitting issues
1 parent 580745f commit 5cd72d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/git-delete-tag

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
#
33
# Delete a tag, both locally and from the origin remote
44

5-
git tag -d $1 && git push origin :refs/tags/$1
5+
git tag -d "$1" && git push origin ":refs/tags/$1"

bin/git-nuke

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
# git nuke add-git-nuke
1010
set -o errexit
1111

12-
git branch -D $1
13-
git push origin :$1
12+
git branch -D "$1"
13+
git push origin ":$1"

0 commit comments

Comments
 (0)