commit | 35b92042e297eda3628a41ebb74fe96e10ac637e | [log] [tgz] |
---|---|---|
author | Milton D. Miller II <miltonm@us.ibm.com> | Sun Feb 28 17:23:04 2016 -0600 |
committer | Milton D. Miller II <miltonm@us.ibm.com> | Wed Mar 02 20:01:23 2016 -0600 |
tree | 54fdcc9b42f88be3a2180a6903e11235df02b7b0 | |
parent | c67caaceb40050e59e30e6cca667568480034b93 [diff] |
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>
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 097d9e0..99a7432 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 @@ # 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