From c6c1dcabd04af5cd55c152a42e8f685cc79f2209 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 13 Jan 2011 12:30:57 +0100 Subject: [PATCH] Added regex to remove -rc suffix --- check_rc_upgrade.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/check_rc_upgrade.sh b/check_rc_upgrade.sh index 083f16b..104729e 100755 --- a/check_rc_upgrade.sh +++ b/check_rc_upgrade.sh @@ -17,6 +17,7 @@ DEBUG=0 [ -f "$0.local" ] && source "$0.local" && [ $DEBUG -eq 1 ] && echo "Import local config file : $0.local" current=`egrep "define.*RCMAIL_VERSION" $RC_HOME/program/include/iniset.php|sed "s/define('.*', '\([^']*\)'.*$/\1/"` +current="`echo $current|sed 's/-rc$//'`" [ $DEBUG -eq 1 ] && echo "Current : $current" for i in `seq 1 $MAX_CHECK`