diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-06-02 12:28:14 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-06-02 12:28:14 -0400 |
commit | 209a8c565f61c9491b151201c5ac0917d6ff26b7 (patch) | |
tree | bcd5e8c2ece43d625be37c1c56ce981b331fac9d /src | |
parent | c54ef152ed0a55e7739c06bcaaa41edf7aa37a7c (diff) |
librechroot: Properly clean up temporary pacman.conf file
Diffstat (limited to 'src')
-rwxr-xr-x | src/chroot-tools/librechroot | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot index 6ae4b12..d763830 100755 --- a/src/chroot-tools/librechroot +++ b/src/chroot-tools/librechroot @@ -449,6 +449,9 @@ main() { # - set 'CacheDir' in \`/etc/pacman.conf'" # - apply -C or -M flags arch-nspawn "$copydir" true + if [[ -n ${tmppacmanconf:-} ]]; then + rm -f -- "$tmppacmanconf" + fi trap EXIT # clear the trap to remove the tmp pacman.conf from -A arch_nspawn_flags=() # XXX dirty hack, don't apply -C or -M again fi |