diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-25 21:40:39 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-25 21:40:39 -0400 |
commit | ae871fca2853bc3e5bf14587caecfa0436ba03a3 (patch) | |
tree | faf6d71ffdc728bacf9e68f668a63373007806f0 /src/chroot-tools/chcleanup | |
parent | cffbaf45b0882a5c6d63d2b798e848d5b21e800b (diff) |
chcleanup: used ##*/ instead of basename
Diffstat (limited to 'src/chroot-tools/chcleanup')
-rwxr-xr-x | src/chroot-tools/chcleanup | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chroot-tools/chcleanup b/src/chroot-tools/chcleanup index 9084736..6432d5b 100755 --- a/src/chroot-tools/chcleanup +++ b/src/chroot-tools/chcleanup @@ -78,7 +78,7 @@ msg "Cleaning chroot..." cp /repo/repo.db /var/lib/pacman/sync/repo.db # Setup the temporary directory -TEMPDIR="$(mktemp --tmpdir -d $(basename $0).XXXXX)" +TEMPDIR="$(mktemp --tmpdir -d ${0##*/}.XXXXXXXXXX)" trap "rm -rf '$TEMPDIR'" EXIT cp -a /var/lib/pacman/sync "${TEMPDIR}/" |