提交 f9dcc8ab 作者: mateon1

Quote `$0` in case it contains spaces

License: MIT
Signed-off-by: 's avatarMateusz Naściszewski <matin1111@wp.pl>
上级 16672127
......@@ -25,7 +25,7 @@ UPGRADE_MSG="Please take a look at https://golang.org/doc/install to install or
# Get path to the directory containing this file
# If $0 has no slashes, uses "./"
PREFIX=$(expr $0 : "\(.*\/\)") || PREFIX='./'
PREFIX=$(expr "$0" : "\(.*\/\)") || PREFIX='./'
# Include the 'check_at_least_version' function
. ${PREFIX}check_version
......
......@@ -29,7 +29,7 @@ UPGRADE_MSG="$3"
# Get path to the directory containing this file
# If $0 has no slashes, uses "./"
PREFIX=$(expr $0 : "\(.*\/\)") || PREFIX='./'
PREFIX=$(expr "$0" : "\(.*\/\)") || PREFIX='./'
# Include the 'check_at_least_version' function
. ${PREFIX}check_version
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论