From 41676808b3f7cbeba28e6631ab45e23dcd960cbd Mon Sep 17 00:00:00 2001 From: Michael Aldridge Date: Thu, 31 Aug 2017 20:07:51 -0700 Subject: [PATCH] mkrootfs.sh.in remove redundant variable --- mkrootfs.sh.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mkrootfs.sh.in b/mkrootfs.sh.in index eb6bd80..dc246a0 100644 --- a/mkrootfs.sh.in +++ b/mkrootfs.sh.in @@ -208,8 +208,8 @@ rm -rf "$ROOTFS/var/cache/*" 2>/dev/null # Finally we can compress the tarball, the name will include the # architecture and the date on which the tarball was built. -tarball=${FILENAME-void-${XBPS_TARGET_ARCH}-ROOTFS-$(date '+%Y%m%d').tar.xz} -run_cmd "tar -cp --posix --xattrs -C $ROOTFS . | xz -T${COMPRESSOR_THREADS:-0} -9 > $tarball " +: "${FILENAME:=void-${XBPS_TARGET_ARCH}-ROOTFS-$(date '+%Y%m%d').tar.xz}" +run_cmd "tar -cp --posix --xattrs -C $ROOTFS . | xz -T${COMPRESSOR_THREADS:-0} -9 > $FILENAME " # Now that we have the tarball we don't need the rootfs anymore, so we # can get rid of it. @@ -219,4 +219,4 @@ rm -rf "$ROOTFS" # this succeeded. This also ensures that there's something visible # that the user can look for at the end of the script, which can make # it easier to see what's going on if something above failed. -info_msg "Successfully created $tarball ($XBPS_TARGET_ARCH)" +info_msg "Successfully created $FILENAME ($XBPS_TARGET_ARCH)"