diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-25 21:44:14 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-25 21:44:14 -0400 |
commit | 8831cc585ae8e9071f8c022bdfaf75e42029d7e4 (patch) | |
tree | 7f63f7708efbd5f8b32a0ded15fedfa28c562b7f /src/chroot-tools/librechroot | |
parent | ae871fca2853bc3e5bf14587caecfa0436ba03a3 (diff) |
Fix quoting/escaping with 'rm' in traps.
Diffstat (limited to 'src/chroot-tools/librechroot')
-rwxr-xr-x | src/chroot-tools/librechroot | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot index d8e76ac..6be9f09 100755 --- a/src/chroot-tools/librechroot +++ b/src/chroot-tools/librechroot @@ -371,7 +371,7 @@ main() { arch-nspawn "$copydir" bash -c 'pacman -Syu --noconfirm' ;; clean-pkgs) - trap "rm -f '$copydir'/bin/chcleanup '$copydir'/chrootexec" EXIT + trap "rm -f -- $(printf '%q ' "$copydir"/{bin/chcleanup,chrootexec})" EXIT install -m755 "$(librelib chroot/chcleanup)" "$copydir/bin/chcleanup" printf '%s\n' \ '#!/bin/bash' \ |