sh: compare strings but not illegal numbers

occurs when IN_TY_TEST_UI is not defined
terminology-1.9
Boris Faure 2 years ago
parent 4a005e2551
commit ba9d951b28
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
  1. 2
      tests/utils.sh

@ -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
}

Loading…
Cancel
Save