Added regex to remove -rc suffix

This commit is contained in:
root 2011-01-13 12:30:57 +01:00
parent b1feead289
commit c6c1dcabd0
1 changed files with 1 additions and 0 deletions

View File

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