From: Honggyu K. <hon...@lg...> - 2013-10-28 03:06:42
|
In configure, string comparison is done using double assignment. /bin/sh doesn't allow to compare strings using "==". So "==" is modified to "=". Signed-off-by: Honggyu Kim <hon...@lg...> --- testcases/kernel/fs/ext4-new-features/configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testcases/kernel/fs/ext4-new-features/configure b/testcases/kernel/fs/ext4-new-features/configure index 13f43f9..12849e5 100755 --- a/testcases/kernel/fs/ext4-new-features/configure +++ b/testcases/kernel/fs/ext4-new-features/configure @@ -14,9 +14,9 @@ read EXT4_DEV echo "The partition is: $EXT4_DEV, Are you sure(Y/N)?" read RESULT -if [ "$RESULT" == "Y" ] || [ "$RESULT" == "y" ]; then +if [ "$RESULT" = "Y" ] || [ "$RESULT" = "y" ]; then echo "EXT4_DEV=$EXT4_DEV" > ./ext4-test-config -elif [ "$RESULT" == "N" ]; then +elif [ "$RESULT" = "N" ]; then echo "Give up specifing a partition!" else echo "Your input is wrong($RESULT)." -- 1.7.9.5 |