From 35b92042e297eda3628a41ebb74fe96e10ac637e Mon Sep 17 00:00:00 2001 From: "Milton D. Miller II" Date: Sun, 28 Feb 2016 17:23:04 -0600 Subject: 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 --- .../common/recipes-phosphor/obmc-phosphor-initfs/files/obmc-shutdown.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta-phosphor/common/recipes-phosphor') 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 -- cgit v1.2.1