From: Bartosz Golaszewski Date: Mon, 13 Dec 2021 16:23:55 +0000 (+0100) Subject: selftests: gpio: gpio-sim: remove bashisms X-Git-Tag: v5.17-rc1~142^2~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f7eda6fe03226b8a608a5d52a1e8273a14fba07c;p=thirdparty%2Fkernel%2Flinux.git selftests: gpio: gpio-sim: remove bashisms '==' is a bashisms and not understood by POSIX shell. Drop it from gpio-sim selftests. Signed-off-by: Bartosz Golaszewski --- diff --git a/tools/testing/selftests/gpio/gpio-sim.sh b/tools/testing/selftests/gpio/gpio-sim.sh index d335a975890cb..c913d5aec768d 100755 --- a/tools/testing/selftests/gpio/gpio-sim.sh +++ b/tools/testing/selftests/gpio/gpio-sim.sh @@ -23,12 +23,12 @@ remove_chip() { for FILE in $CONFIGFS_DIR/$CHIP/*; do BANK=`basename $FILE` - if [ "$BANK" == "live" ] || [ "$BANK" == "dev_name" ]; then + if [ "$BANK" = "live" ] || [ "$BANK" = "dev_name" ]; then continue fi LINES=`ls $CONFIGFS_DIR/$CHIP/$BANK/ | egrep ^line` - if [ "$?" == 0 ]; then + if [ "$?" = 0 ]; then for LINE in $LINES; do if [ -e $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog ]; then rmdir $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog || \