diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-04-20 21:50:58 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-04-20 22:56:14 -0400 |
commit | d958a33c1f0e11b770481a9188cbf75cc3bfd0a5 (patch) | |
tree | b5ae47096365863eb26a77a89af0e36b48b5ca03 /src/dagpkg | |
parent | 2d1ae58285ade402260bf5d5a4dbf42aba027fc5 (diff) |
Quote unquoted strings that should probably be quoted.
These were found with the help of shellcheck.
Nothing more complicated than wrapping a variable in double quotes has been
done.
Diffstat (limited to 'src/dagpkg')
-rwxr-xr-x | src/dagpkg | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -5,6 +5,7 @@ # Copyright (C) 2014 Nicolás Reynolds <fauno@parabola.nu> # Copyright (C) 2014 Michał Masłowski <mtjm@mtjm.eu> +# Copyright (C) 2017 Luke Shumaker <lukeshu@sbcglobal.net> # # License: GNU GPLv3+ # @@ -112,20 +113,20 @@ visit_pkgbuild() { # Detect cycle or already visited package case "${marks[$name]:-0}" in - 1) msg2 "cycle found with %s depending on %s" $prev $name + 1) msg2 "cycle found with %s depending on %s" "$prev" "$name" exit 1;; 2) return;; esac - msg "%s (%s)" ${name} ${prev} + msg "%s (%s)" "${name}" "${prev}" if ! in_array "${CARCH}" "${arch[@]}"; then - warning "%s isn't ported to %s yet" ${name} ${CARCH} + warning "%s isn't ported to %s yet" "${name}" "${CARCH}" fi # If the envvar I contains this package, ignore it and exit if in_array "$name" $I; then - msg2 "%s ignored" ${name} + msg2 "%s ignored" "${name}" return fi @@ -145,7 +146,7 @@ visit_pkgbuild() { test -z "$w" && continue # Go to this dir - pushd $w &>/dev/null + pushd "$w" &>/dev/null visit_pkgbuild "$name" |