From d958a33c1f0e11b770481a9188cbf75cc3bfd0a5 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 20 Apr 2017 21:50:58 -0400 Subject: 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. --- src/chroot-tools/chcleanup.in | 2 +- src/chroot-tools/librechroot | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/chroot-tools') diff --git a/src/chroot-tools/chcleanup.in b/src/chroot-tools/chcleanup.in index d6f2156..a7d2fb4 100644 --- a/src/chroot-tools/chcleanup.in +++ b/src/chroot-tools/chcleanup.in @@ -68,7 +68,7 @@ msg "Cleaning chroot..." cp /repo/repo.db /var/lib/pacman/sync/repo.db # Setup the temporary directory -TEMPDIR="$(mktemp --tmpdir -d ${0##*/}.XXXXXXXXXX)" +TEMPDIR="$(mktemp --tmpdir -d "${0##*/}.XXXXXXXXXX")" trap "rm -rf -- $(printf '%q' "$TEMPDIR")" EXIT cp -a /var/lib/pacman/sync "${TEMPDIR}/" diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot index fb0490e..a1e01d0 100755 --- a/src/chroot-tools/librechroot +++ b/src/chroot-tools/librechroot @@ -66,7 +66,7 @@ hack_arch_nspawn_flags() { # Detect the architecture of the chroot local CARCH if [[ -f "$makepkg_conf" ]]; then - eval $(grep '^CARCH=' "$makepkg_conf") + eval "$(grep '^CARCH=' "$makepkg_conf")" else CARCH="$(uname -m)" fi -- cgit v1.2.2