diff options
author | Milton D. Miller II <miltonm@us.ibm.com> | 2016-02-28 17:23:04 -0600 |
---|---|---|
committer | Milton D. Miller II <miltonm@us.ibm.com> | 2016-03-02 20:01:23 -0600 |
commit | 35b92042e297eda3628a41ebb74fe96e10ac637e (patch) | |
tree | 54fdcc9b42f88be3a2180a6903e11235df02b7b0 | |
parent | c67caaceb40050e59e30e6cca667568480034b93 (diff) | |
download | talos-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.sh | 2 |
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 |