<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Joe Blog&#039;s &#187; script</title>
	<atom:link href="http://blog.joeb454.com/tag/script/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.joeb454.com</link>
	<description>A Day In The Life Of Your Average Joe</description>
	<lastBuildDate>Fri, 07 Oct 2011 19:04:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Long Time No Blog</title>
		<link>http://blog.joeb454.com/2009/08/long-time-no-blog/</link>
		<comments>http://blog.joeb454.com/2009/08/long-time-no-blog/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 23:07:10 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Update]]></category>

		<guid isPermaLink="false">http://blog.joeb454.com/?p=325</guid>
		<description><![CDATA[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, [...]]]></description>
			<content:encoded><![CDATA[<p>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!</p>
<p>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:</p>
<pre>
<div class="codesnip-container" >
<div class="bash codesnip" style="font-family:monospace;">
<ol>
<li class="li1">
<div class="de1"><span class="co0">#!/bin/bash</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">if</span> <span class="br0">&#91;</span> <span class="re4">$#</span> == 2 <span class="br0">&#93;</span>; <span class="kw1">then</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re2">new</span>=$2</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">else</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re2">new</span>=$1</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">fi</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">if</span> <span class="br0">&#91;</span> <span class="re5">-d</span> $1 <span class="br0">&#93;</span>; <span class="kw1">then</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw2">rm</span> <span class="re5">-rf</span> .<span class="sy0">/</span>$1</div>
</li>
<li class="li1">
<div class="de1"><span class="kw1">fi</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">wget</span> http:<span class="sy0">//</span>downloads.wordpress.org<span class="sy0">/</span>plugin<span class="sy0">/</span><span class="re1">$new</span>.zip</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">unzip</span> .<span class="sy0">/*</span>.zip</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">rm</span> .<span class="sy0">/*</span>.zip</div>
</li>
</ol>
</div>
</div>
</pre>
<p>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!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joeb454.com/2009/08/long-time-no-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

