From a57f26f2c62805b9e61719361ca17ccf53c897ad Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 30 Aug 2015 04:47:29 +0100 Subject: all scripts: general fixes and clean up --- resources/scripts/helpers/build/release/tobuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'resources/scripts/helpers/build/release/tobuild') diff --git a/resources/scripts/helpers/build/release/tobuild b/resources/scripts/helpers/build/release/tobuild index 7360fb1c..ad8bac93 100755 --- a/resources/scripts/helpers/build/release/tobuild +++ b/resources/scripts/helpers/build/release/tobuild @@ -37,7 +37,7 @@ distdir="${versiondir}/${distname}" printf "Creating source archive for flashrom and bucts\n" # delete the old data -rm -Rf "${distdir}/" +rm -Rf "${distdir:?}/" rm -f "${distdir}.tar.xz" # this is where they will go @@ -75,7 +75,7 @@ printf '%s\n' "${version}" >"${distdir}/version" (cd "${versiondir}/" && tar -c "${distname}/" | xz -9e >"${distname}.tar.xz") # and delete the directory -rm -Rf "${distdir}/" +rm -Rf "${distdir:?}/" printf "\n" printf "Tar archive created: %s\n" "${distdir}.tar.xz" -- cgit v1.2.3-70-g09d2