summaryrefslogtreecommitdiff
path: root/meta-ibm/meta-romulus
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2023-04-14 23:08:08 +0300
committerPatrick Williams <patrick@stwcx.xyz>2023-04-19 04:37:09 +0300
commit9b8716888b838a9985a313d8c2ed287497d851e7 (patch)
tree98f2cbb238baaed45d1b814a7a012ce2bf7b3779 /meta-ibm/meta-romulus
parent51d6af4e64f0ca08e6b8322b0cac94b93e5d5e27 (diff)
downloadopenbmc-9b8716888b838a9985a313d8c2ed287497d851e7.tar.xz
meta-ibm: fix some shellcheck issues
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Iced76041c1207dc9ab28a83fd849ba3cd0a07bb5
Diffstat (limited to 'meta-ibm/meta-romulus')
-rwxr-xr-xmeta-ibm/meta-romulus/recipes-phosphor/gpio/id-button/toggle_identify_led.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta-ibm/meta-romulus/recipes-phosphor/gpio/id-button/toggle_identify_led.sh b/meta-ibm/meta-romulus/recipes-phosphor/gpio/id-button/toggle_identify_led.sh
index eec96d3f19..0d1ff32c63 100755
--- a/meta-ibm/meta-romulus/recipes-phosphor/gpio/id-button/toggle_identify_led.sh
+++ b/meta-ibm/meta-romulus/recipes-phosphor/gpio/id-button/toggle_identify_led.sh
@@ -7,14 +7,14 @@ PROPERTY="Asserted"
# Get current state
object=$(busctl tree $SERVICE --list | grep identify)
-state=$(busctl get-property $SERVICE $object $INTERFACE $PROPERTY \
+state=$(busctl get-property $SERVICE "$object" $INTERFACE $PROPERTY \
| awk '{print $NF;}')
-if [ "$state" == "false" ]; then
+if [ "$state" = "false" ]; then
target='true'
else
target='false'
fi
# Set target state
-busctl set-property $SERVICE $object $INTERFACE $PROPERTY b $target
+busctl set-property $SERVICE "$object" $INTERFACE $PROPERTY b $target