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>
-#!/bin/sh -ef
+#!/bin/sh -efu
# Copyright 2013 Intel Corporation
# Author: Artem Bityutskiy
}
# 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