[Mediawiki-l] svn update mediawiki and extensions at same time

Juliano F. Ravasi ml at juliano.info
Mon Apr 6 13:27:51 UTC 2009


Benjamin Lees wrote:
> I think that would have to be
> cd /var/www/mediawiki && svn update && for dir in `ls
> /var/www/mediawiki/extensions`;do cd "/var/www/mediawiki/$dir" && svn
> update;done;

Don't ever use 'ls' to generate a word list for use with 'for', it'll
hurt yourself when you least expect. This should be enough:

cd /var/www/mediawiki && svn update &&
	for dir in /var/www/mediawiki/extensions/*/
	do cd "$dir" && svn update
	done

-- 
Juliano F. Ravasi ·· http://juliano.info/
5105 46CC B2B7 F0CD 5F47 E740 72CA 54F4 DF37 9E96

"A candle loses nothing by lighting another candle." -- Erin Majors

* NOTE: Don't try to reach me through this address, use "contact@" instead.



More information about the MediaWiki-l mailing list