summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-03-25 21:40:39 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-03-25 21:40:39 -0400
commitae871fca2853bc3e5bf14587caecfa0436ba03a3 (patch)
treefaf6d71ffdc728bacf9e68f668a63373007806f0
parentcffbaf45b0882a5c6d63d2b798e848d5b21e800b (diff)
chcleanup: used ##*/ instead of basename
-rwxr-xr-xsrc/chroot-tools/chcleanup2
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}/"