r114573 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114572‎ | r114573 | r114574 >
Date:20:49, 28 March 2012
Author:platonides
Status:ok
Tags:
Comment:
The portable way is to perform a string comparison using
just one equal sign [1]. Bash test accepts ==, but dash
complains about an 'unexpected operator'.
Fixes r114531.

1- http://www.opengroup.org/sud/sud1/xcu/test.htm
Modified paths:
  • /trunk/tools/code-utils/subgits (modified) (history)

Diff [purge]

Index: trunk/tools/code-utils/subgits
@@ -13,7 +13,7 @@
1414 # subgits pull
1515
1616 EXTRA=""
17 -if [ "$1" == "-v" ]; then
 17+if [ "$1" = "-v" ]; then
1818 shift
1919 EXTRA="-execdir pwd ;"
2020 fi

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r114531Show the folder in which we're executing each subcommand...platonides17:05, 27 March 2012

Status & tagging log