r92817 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92816‎ | r92817 | r92818 >
Date:22:35, 21 July 2011
Author:aaron
Status:ok
Tags:
Comment:
Actually commit the r92816 stuff...
Modified paths:
  • /trunk/tools/mwmultiversion/scripts/mwversionsinuse (modified) (history)

Diff [purge]

Index: trunk/tools/mwmultiversion/scripts/mwversionsinuse
@@ -11,19 +11,19 @@
1212 mwDbName=${line% *}
1313 mwVersion=${line#* }
1414 mwVersionNum=${mwVersion#*-}
15 - if [ -n "$mwDatabase" -a -n "$mwVersionNum" ]; then
 15+ if [ -n "$mwDbName" -a -n "$mwVersionNum" ]; then
1616 mwVersionInArray=0
1717 for i in "${mwVersionsNums[@]}"
1818 do
19 - if [ "$i" -eq "$mwVersionNum" ]; then
 19+ if [ "$i" = "$mwVersionNum" ]; then
2020 mwVersionInArray=1
2121 break
2222 fi
2323 done
2424
25 - if [ $mwVersionInArray -eq 0 ]; then
 25+ if [ "$mwVersionInArray" -eq "0" ]; then
2626 mwVersionsNums=("${mwVersionsNums[@]}" "$mwVersionNum")
27 - if [ "$1" -eq "--withdb" ]; then
 27+ if [ "$1" = "--withdb" ]; then
2828 mwVersionsRes=("${mwVersionsRes[@]}" "$mwVersionNum=$mwDbName")
2929 else
3030 mwVersionsRes=("${mwVersionsRes[@]}" "$mwVersionNum")
@@ -32,5 +32,5 @@
3333 else
3434 exit 1
3535 fi
36 -done < /usr/local/apache/common-local/wmf-config/wikiversions.cdb
 36+done < /usr/local/apache/common-local/wikiversions.cdb
3737 echo "${mwVersionsRes[@]}"

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r92816* Fixed bash header...aaron22:34, 21 July 2011

Status & tagging log