Quote `$0` in case it contains spaces
License: MIT Signed-off-by: Mateusz Naściszewski <matin1111@wp.pl>
mateon1 committed
Sep 2, 2016 at 21:13 UTC
f9dcc8abb1767e03b6aa578596a224ced05e14e4
2 files changed
+2
-2
bin/check_go_version
+1
-1
@@ -25,7 +25,7 @@ UPGRADE_MSG="Please take a look at https://golang.org/doc/install to install or
25
26
# Get path to the directory containing this file
27
# If $0 has no slashes, uses "./"
28
-PREFIX=$(expr $0 : "\(.*\/\)") || PREFIX='./'
28
+PREFIX=$(expr "$0" : "\(.*\/\)") || PREFIX='./'
29
# Include the 'check_at_least_version' function
30
. ${PREFIX}check_version
31
bin/check_gx_program
+1
-1
@@ -29,7 +29,7 @@ UPGRADE_MSG="$3"
29
30
# Get path to the directory containing this file
31
# If $0 has no slashes, uses "./"
32
-PREFIX=$(expr $0 : "\(.*\/\)") || PREFIX='./'
32
+PREFIX=$(expr "$0" : "\(.*\/\)") || PREFIX='./'
33
# Include the 'check_at_least_version' function
34
. ${PREFIX}check_version
35