From b6d758aaf2054a7835fe635f40c5b5c22ca7ec99 Mon Sep 17 00:00:00 2001 From: Karanbir Singh Date: Nov 19 2011 00:07:38 +0000 Subject: bash string comparions are with = --- diff --git a/tests/0_lib/functions.sh b/tests/0_lib/functions.sh index 41099e5..de4093c 100755 --- a/tests/0_lib/functions.sh +++ b/tests/0_lib/functions.sh @@ -79,7 +79,7 @@ function t_CheckDeps # handy, if you dont know the service might already be running function t_ServiceControl { - if [ $2 -eq 'cycle' ]; then + if [ $2 = "cycle" ]; then /sbin/service $1 stop > /dev/null 2>&1 sleep 3 /sbin/service $1 start