sh: compare strings but not illegal numbers

occurs when IN_TY_TEST_UI is not defined
This commit is contained in:
Boris Faure 2020-12-26 18:35:40 +01:00
parent 4a005e2551
commit ba9d951b28
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
test_sleep()
{
#only sleep when running the test within terminology with test ui on
if [ "$IN_TY_TEST_UI" -eq "1" ]; then
if [ "$IN_TY_TEST_UI" = "1" ]; then
sleep "$1"
fi
}