summaryrefslogtreecommitdiffstats
path: root/resources/scripts/helpers/build/release/util
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-08-29 23:47:29 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-08-29 23:47:29 (EDT)
commita57f26f2c62805b9e61719361ca17ccf53c897ad (patch)
tree31777747249a8b538fa6f1bbbec39b131be59044 /resources/scripts/helpers/build/release/util
parent8c07c380121cdab4efd50cff453875903b8c67ef (diff)
downloadlibreboot-a57f26f2c62805b9e61719361ca17ccf53c897ad.zip
libreboot-a57f26f2c62805b9e61719361ca17ccf53c897ad.tar.gz
libreboot-a57f26f2c62805b9e61719361ca17ccf53c897ad.tar.bz2
all scripts: general fixes and clean up
Diffstat (limited to 'resources/scripts/helpers/build/release/util')
-rwxr-xr-xresources/scripts/helpers/build/release/util10
1 files changed, 4 insertions, 6 deletions
diff --git a/resources/scripts/helpers/build/release/util b/resources/scripts/helpers/build/release/util
index 5ef733e..95bc234 100755
--- a/resources/scripts/helpers/build/release/util
+++ b/resources/scripts/helpers/build/release/util
@@ -26,12 +26,12 @@
set -u -e
arch="unknown"
-if [ $(uname -i) = "i686" ] || [ $(uname -m) = "i686" ]
+if [ "$(uname -i)" = "i686" ] || [ "$(uname -m)" = "i686" ]
then
arch="i686"
echo "Running on i686. ok."
sleep 2
-elif [ $(uname -i) = "x86_64" ] || [ $(uname -m) = "x86_64" ]
+elif [ "$(uname -i)" = "x86_64" ] || [ "$(uname -m)" = "x86_64" ]
then
arch="x86_64"
echo "Running on x86_64. ok."
@@ -55,7 +55,7 @@ distdir="${versiondir}/${distname}"
printf "Creating utility archive (static executables)\n"
# delete the old data
-rm -Rf "${distdir}/"
+rm -Rf "${distdir:?}/"
rm -f "${distdir}.tar.xz"
# this is where they will go
@@ -221,6 +221,4 @@ printf "done\n\n"
# ----------------------------------------------------------------------------------------------------------------------------
# The uncompressed archives are no longer needed
-rm -Rf "${distdir}/"
-
-# ------------------- DONE ----------------------
+rm -Rf "${distdir:?}/"