Wrap $@ in double quotes to preserve blank args
This commit is contained in:
@@ -50,7 +50,7 @@ __git_ignore() {
|
|||||||
}
|
}
|
||||||
# Always expand args
|
# Always expand args
|
||||||
git_ignore() {
|
git_ignore() {
|
||||||
exec_scmb_expand_args __git_ignore $@
|
exec_scmb_expand_args __git_ignore "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Add one git ignore rule, just for your machine
|
# Add one git ignore rule, just for your machine
|
||||||
@@ -64,7 +64,7 @@ __git_exclude_basename() {
|
|||||||
__git_ignore "$(basename "$1")" ".git/info/exclude"
|
__git_ignore "$(basename "$1")" ".git/info/exclude"
|
||||||
}
|
}
|
||||||
git_exclude_basename() {
|
git_exclude_basename() {
|
||||||
exec_scmb_expand_args __git_exclude_basename $@
|
exec_scmb_expand_args __git_exclude_basename "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user