mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-02 11:54:36 +08:00
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 <brgl@bgdev.pl>
This commit is contained in:
parent
2ac5eb840f
commit
f7eda6fe03
@ -23,12 +23,12 @@ remove_chip() {
|
|||||||
|
|
||||||
for FILE in $CONFIGFS_DIR/$CHIP/*; do
|
for FILE in $CONFIGFS_DIR/$CHIP/*; do
|
||||||
BANK=`basename $FILE`
|
BANK=`basename $FILE`
|
||||||
if [ "$BANK" == "live" ] || [ "$BANK" == "dev_name" ]; then
|
if [ "$BANK" = "live" ] || [ "$BANK" = "dev_name" ]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LINES=`ls $CONFIGFS_DIR/$CHIP/$BANK/ | egrep ^line`
|
LINES=`ls $CONFIGFS_DIR/$CHIP/$BANK/ | egrep ^line`
|
||||||
if [ "$?" == 0 ]; then
|
if [ "$?" = 0 ]; then
|
||||||
for LINE in $LINES; do
|
for LINE in $LINES; do
|
||||||
if [ -e $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog ]; then
|
if [ -e $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog ]; then
|
||||||
rmdir $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog || \
|
rmdir $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog || \
|
||||||
|
Loading…
Reference in New Issue
Block a user