Aug 022009
Clearly I haven’t blogged for a while – this was evident by the fact I had a wordpress upgrade waiting to be done, and no less than 8 plugin upgrades!
Now normally, I don’t mind being all long winded about plugin upgrades, because it’s usually just one or 2. Now because I’m picky and awkward, the WP auto-upgrade for plugins doesn’t seem to work on my server. Instead of fixing that, I simply wrote a bash script. The contents of which are:
#!/bin/bash if [ $# == 2 ]; then new=$2 else new=$1 fi if [ -d $1 ]; then rm -rf ./$1 fi wget http://downloads.wordpress.org/plugin/$new.zip unzip ./*.zip rm ./*.zip
Not sure if anybody wants to use that – I’m sure it could be improved, but it satisfied 2 of my needs. I now have an easier way to update (and install, I guess) plugins, and a lesser desire to code things. I now have to think of my next blog topic so I can get back on track!

Sorry, the comment form is closed at this time.