commit | 8c2262344c1fc1f8708f4a44af395ea8c49f12e2 | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Sat Apr 15 20:05:21 2023 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Thu Apr 27 16:16:12 2023 +0000 |
tree | c77f039128cd588f75b89a2272248960b3482baf | |
parent | bd58e95482128fa5aefb97125613e6b23723e85e [diff] |
meta-quanta: fix shellcheck issues Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I189baf142cc86d44ebbf615edd3bb0ec1785be8d
diff --git a/meta-quanta/meta-gbs/recipes-gbs/hotswap-power-cycle/files/tray_powercycle.sh b/meta-quanta/meta-gbs/recipes-gbs/hotswap-power-cycle/files/tray_powercycle.sh index e22dd20..14136b7 100644 --- a/meta-quanta/meta-gbs/recipes-gbs/hotswap-power-cycle/files/tray_powercycle.sh +++ b/meta-quanta/meta-gbs/recipes-gbs/hotswap-power-cycle/files/tray_powercycle.sh
@@ -27,12 +27,12 @@ main() { # Stop phosphor-hwmon so that ADM1272 powercycle doesn't happen # in the middle of an i2c transaction and stuck the bus low - stop_phosphor_hwmon + stop_phosphor_hwmon "$@" gpioset gpiochip6 26=1 } # Exit without running main() if sourced -return 0 2>/dev/null - -main "$@" +if ! (return 0 2>/dev/null) ; then + main "$@" +fi