summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2013-06-26 13:08:43 +0300
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2013-06-26 13:15:52 +0300
commit574ab777e68f0020b2a20fa20b41a66c46b3a765 (patch)
treea56053021929eea677d8cc57ecaff5567353bd50
parent0d8d92d0a3a3726a7895ebaf44ceb7cc5b5ddd37 (diff)
downloadsetup-efi-ivi-574ab777e68f0020b2a20fa20b41a66c46b3a765.tar.gz
setup-efi-ivi-574ab777e68f0020b2a20fa20b41a66c46b3a765.tar.bz2
setup-efi-ivi-574ab777e68f0020b2a20fa20b41a66c46b3a765.zip
setup-efi-ivi: use -u shell option
It is a good practice to use the -u shell option because it helps writing cleaner and more secure scripts. Start using it. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
-rwxr-xr-xsetup-efi-ivi6
1 files changed, 3 insertions, 3 deletions
diff --git a/setup-efi-ivi b/setup-efi-ivi
index ad5adf8..f2d3bad 100755
--- a/setup-efi-ivi
+++ b/setup-efi-ivi
@@ -1,4 +1,4 @@
-#!/bin/sh -ef
+#!/bin/sh -efu
# Copyright 2013 Intel Corporation
# Author: Artem Bityutskiy
@@ -14,8 +14,8 @@ fatal()
}
# Make sure the installer framework variables are defined
-[ "x$INSTALLERFW_INSTALLER_NAME" != "x" ] ||
- fatal "installer framework environment variables not found"
+[ "${INSTALLERFW_INSTALLER_NAME:+x}" == "x" ] ||
+ fatal "installer framework environment variables not found"
# Find the root and boot paritions
pnum=0