diff options
author | Guillem Jover <guillem@debian.org> | 2018-10-09 23:53:14 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2018-10-10 01:13:00 +0200 |
commit | 8f14ffd71be934539e57e743aba533702ef59b53 (patch) | |
tree | dd59acdb347e641ddcb70f77438b541fa324ec64 /scripts | |
parent | c2ad8678a6d8299b2d51b8a56c6f2e441ee847d3 (diff) | |
download | dpkg-8f14ffd71be934539e57e743aba533702ef59b53.tar.gz |
shell: Quote variables
Reported-by: Johannes Schauer <josch@debian.org>
Warned-by: shellcheck
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/dpkg-maintscript-helper.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/dpkg-maintscript-helper.sh b/scripts/dpkg-maintscript-helper.sh index d501307e1..2865a63d5 100755 --- a/scripts/dpkg-maintscript-helper.sh +++ b/scripts/dpkg-maintscript-helper.sh @@ -424,7 +424,7 @@ prepare_dir_to_symlink() # we should not perform the switch. export DPKG_MAINTSCRIPT_HELPER_INTERNAL_API="$version" find "$PATHNAME" -print0 | \ - xargs -0 -n1 $0 _internal_pkg_must_own_file "$PACKAGE" || \ + xargs -0 -n1 "$0" _internal_pkg_must_own_file "$PACKAGE" || \ error "directory '$PATHNAME' contains files not owned by" \ "package $PACKAGE, cannot switch to symlink" unset DPKG_MAINTSCRIPT_HELPER_INTERNAL_API @@ -568,7 +568,7 @@ COLOR_BOLD_WHITE='[1;37m' setup_colors() { - : ${DPKG_COLORS=auto} + : "${DPKG_COLORS=auto}" case "$DPKG_COLORS" in auto) |