Geek Noise
Rants, rambles, news and notes by Peter Provost
25

My newest interesting Powershell script

Tuesday, 25 July 2006 06:20 by Peter Provost

I’ve started running a bunch of Ace Addons for World of Warcraft and I love the fact that they have them all up on their Subversion server. But it was getting annoying having to do “svn update” on each and every folder (using TortoiseSVN wasn’t any better… I then had to right-click each one… not better).

But of course, being the Powershell junkie that I am, I had to automate this, so here’s what I just ran. I know it can be simplified a bit, but this works for now:

PS > gci | where { $_.GetType().FullName -eq "System.IO.DirectoryInfo" } | foreach { cd $_; svn update }

Woo hoo!

Update: I suppose I should have just tried using SVN for this first, eh? It turns out "svn update *" works just fine.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Comments are closed