Added regex to remove -rc suffix
root

root commited on 2011-01-13 11:30:57
Showing 1 changed files, with 1 additions and 0 deletions.

... ...
@@ -17,6 +17,7 @@ DEBUG=0
17 17
 [ -f "$0.local" ] && source "$0.local" && [ $DEBUG -eq 1 ] && echo "Import local config file : $0.local"
18 18
 
19 19
 current=`egrep "define.*RCMAIL_VERSION" $RC_HOME/program/include/iniset.php|sed "s/define('.*', '\([^']*\)'.*$/\1/"`
20
+current="`echo $current|sed 's/-rc$//'`"
20 21
 [ $DEBUG -eq 1 ] && echo "Current : $current"
21 22
 
22 23
 for i in `seq 1 $MAX_CHECK`
23 24