summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilton D. Miller II <miltonm@us.ibm.com>2016-02-28 17:23:04 -0600
committerMilton D. Miller II <miltonm@us.ibm.com>2016-03-02 20:01:23 -0600
commit35b92042e297eda3628a41ebb74fe96e10ac637e (patch)
tree54fdcc9b42f88be3a2180a6903e11235df02b7b0
parentc67caaceb40050e59e30e6cca667568480034b93 (diff)
downloadtalos-openbmc-35b92042e297eda3628a41ebb74fe96e10ac637e.tar.gz
talos-openbmc-35b92042e297eda3628a41ebb74fe96e10ac637e.zip
shutdown: Test equality with =
The test command is documented as taking = and not == to test two strings for equality. While both appear to work use the documented comparison operator. Signed-off-by: Milton Miller <miltonm@us.ibm.com>
-rw-r--r--meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-shutdown.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-shutdown.sh b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-shutdown.sh
index 097d9e086..99a743222 100644
--- a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-shutdown.sh
+++ b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-shutdown.sh
@@ -53,7 +53,7 @@ test -t 1 && stty cooked 0<&1
# Execute the command systemd told us to ...
if test -d /oldroot && test "$1"
then
- if test "$1" == kexec
+ if test "$1" = kexec
then
$1 -f -e
else
OpenPOWER on IntegriCloud