Use quotes to fix some shellcheck warnings
License: MIT Signed-off-by: Mateusz Naściszewski <matin1111@wp.pl>
mateon1 committed
Feb 16, 2017 at 14:03 UTC
4ae80d69339ec021336501e57e15d9d38a9d133f
1 file changed
+2
-2
bin/dist_get
+2
-2
@@ -17,9 +17,9 @@ try_download() {
17
url="$1"
18
output="$2"
19
command="$3"
20
- util_name=$(set -- $3; echo $1)
20
+ util_name="$(set -- $command; echo "$1")"
21
22
- if ! have_binary $util_name; then
22
+ if ! have_binary "$util_name"; then
23
return 1
24
fi
25