Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Automatically update WebKit via script and launchd' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Automatically update WebKit via script and launchd
Authored by: daaku on Aug 04, '08 05:56:34PM
A simpler script:

URL=$(curl | grep dmg | head -1 | perl -pe 's/.*(http.*dmg).*/$1/')
FILE=$(basename $URL)
mkdir -p $tmpdir &&
cd $tmpdir &&
curl $URL --remote-name &&
hdiutil attach -quiet $tmpdir/$FILE &&
mv /Applications/ ~/.Trash/WebKit-`date +%Y-%m-%d_%H-%M-%s`.app/ &&
cp -R /Volumes/WebKit/ /Applications/ &&
hdiutil detach -quiet /Volumes/WebKit &&
echo Installed $FILE

[ Reply to This | # ]