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`