Skip to content

Commit 8e606f9

Browse files
committed
Merge branch 'dw/shell-basename-dashdash-before-stripping-leading-dash-from-login'
* dw/shell-basename-dashdash-before-stripping-leading-dash-from-login: git-sh-setup.sh: use dashdash with basename call
2 parents 7665d9c + 7d665f3 commit 8e606f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

git-sh-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ if test -n "$OPTIONS_SPEC"; then
8181
echo exit $?
8282
)"
8383
else
84-
dashless=$(basename "$0" | sed -e 's/-/ /')
84+
dashless=$(basename -- "$0" | sed -e 's/-/ /')
8585
usage() {
8686
die "usage: $dashless $USAGE"
8787
}

0 commit comments

Comments
 (0)