0
0
mirror of https://github.com/tj/n.git synced 2024-11-25 15:49:24 +01:00

Add double quotes around ${@}, otherwise it's just like $* and breaks on

spaces.

See: https://github.com/koalaman/shellcheck/wiki/SC2068
This commit is contained in:
Joshua Appelman 2014-07-06 05:16:31 +02:00
parent 3c486acc64
commit 9c2e6b8b6f

2
bin/n
View File

@ -364,7 +364,7 @@ execute_with_version() {
shift # remove version
if test -f $bin; then
$bin $@
$bin "$@"
else
abort "$version is not installed"
fi