summaryrefslogtreecommitdiffstats
path: root/flash
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 /flash
parent8c07c380121cdab4efd50cff453875903b8c67ef (diff)
downloadlibreboot-a57f26f2c62805b9e61719361ca17ccf53c897ad.zip
libreboot-a57f26f2c62805b9e61719361ca17ccf53c897ad.tar.gz
libreboot-a57f26f2c62805b9e61719361ca17ccf53c897ad.tar.bz2
all scripts: general fixes and clean up
Diffstat (limited to 'flash')
-rwxr-xr-xflash4
1 files changed, 2 insertions, 2 deletions
diff --git a/flash b/flash
index 3c05206..8c1249c 100755
--- a/flash
+++ b/flash
@@ -31,9 +31,9 @@ if [[ ${EUID} -ne 0 ]]; then
fi
arch="unknown"
-if [ $(uname -i) = "i686" ] || [ $(uname -m) = "i686" ]; then
+if [ "$(uname -i)" = "i686" ] || [ "$(uname -m)" = "i686" ]; then
arch="i686"
-elif [ $(uname -i) = "x86_64" ] || [ $(uname -m) = "x86_64" ]; then
+elif [ "$(uname -i)" = "x86_64" ] || [ "$(uname -m)" = "x86_64" ]; then
arch="x86_64"
else
printf "This script must be run on an i686 or x86_64 host. x86_64 is recommended.\n"