Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Chromium Nightly Build updater

Name: Anonymous 2011-01-12 19:15

What do you think?

#!/bin/bash

### chromium_updater.sh - Version 1.3.1

# downloads, unpacks and installs the latest chromium nightly build for os x
# http://build.chromium.org/f/chromium/snapshots/chromium-rel-mac/LATEST
# http://build.chromium.org/buildbot/snapshots/chromium-rel-mac/LATEST

# please change this variable to your prefered install location (default is /Applications)!
APPDIR="/Applications"

LATEST=$(curl -s http://build.chromium.org/f/chromium/snapshots/chromium-rel-mac/LATEST)
if [ "${?}" -gt "0" ]; then
    echo "I can't find the latest build!"
    exit 1
elif [ ! -e ${APPDIR}/Chromium.app ]; then
    echo "I couldn't find Chromium in \"${APPDIR}\", performing initial install of Build ${LATEST}."
else
    LAST=$(/usr/libexec/PlistBuddy -c "Print SVNRevision" ${APPDIR}/Chromium.app/Contents/Info.plist 2>/dev/null)
    if [ ${LATEST} -eq ${LAST} ]; then
    echo "Chromium is already up to date!"
    exit 1
    fi
    echo "Updating from Build ${LAST} to ${LATEST}"
fi
trap "rm -rf ${TMPDIR}/chrome-mac.zip 2>/dev/null; rm -rf ${TMPDIR}/chrome-mac 2>/dev/null; exit 1" 1 2 15
curl -# http://build.chromium.org/f/chromium/snapshots/chromium-rel-mac/$;{LATEST}/chrome-mac.zip -o ${TMPDIR}/chrome-mac.zip
unzip -oqq ${TMPDIR}/chrome-mac.zip -d ${TMPDIR}/
rm ${TMPDIR}/chrome-mac.zip
killall Chromium 2>/dev/null
DERP=${?}
sleep 2
mv ${APPDIR}/Chromium.app ${HOME}/.Trash/Chromium_${LAST}.app 2>/dev/null
mv ${TMPDIR}/chrome-mac/Chromium.app ${APPDIR}
if [ "${DERP}" -eq "0" ] || [ "${1}" = "-o" ]; then
    open -g ${APPDIR}/Chromium.app
fi
exit 0

Name: Anonymous 2011-01-12 19:18

NO EXCEPTIONS

Name: Anonymous 2011-01-12 20:40

I think it's a bash script that downloads, unpacks and installs the latest chromium nightly build for OSX.

Name: Anonymous 2011-01-12 21:17

I think that it is a profound commentary of the state of modern day society. Pulitzer quality material here.

Name: Anonymous 2011-01-12 21:51

I think of cocks drifting across the blue sky.

Name: Anonymous 2011-01-12 21:54

Don't bash, lisp and you'll be satori

Name: Anonymous 2011-01-13 1:58

>>1
That would be so easy in Lisp.

Name: Anonymous 2011-01-13 4:18

>>7
Proof?

Name: Anonymous 2011-01-13 23:06

I thought Chrome already auto-updated itself. This seems redundant

Name: Anonymous 2011-01-14 3:53

>>9
Unless you are on a Mac, where Steve Jobs himself has banned all auto-update functionality into the depths of hell!

Name: Anonymous 2011-01-14 6:30

<-- check out my doubles!

Name: Back to /b/, !uaVa00FkCs 2011-01-14 6:32

>>11
Back to /b/, ``please''.

Name: Fuck off, !Ep8pui8Vw2 2011-01-14 6:40

>>12
Fuck off, ``faggot''.

Name: Back to /b/, !uaVa00FkCs 2011-01-14 6:42

>>13
Back to /b/, ``please''.

Name: Anonymous 2011-01-14 6:43

>>14
Fuck off, ``faggot''.

Name: Back to /b/, !uaVa00FkCs 2011-01-14 6:44

>>15
Back to /b/, ``please''.

Name: Fuck off, !Ep8pui8Vw2 2011-01-14 6:45

>>16
Fuck off, ``faggot''.

Name: Back to /b/, !uaVa00FkCs 2011-01-14 6:45

>>17
Back to /b/, ``please''.

Name: Anonymous 2011-01-14 6:46

>>18,20
Fuck off, ``faggot''.

Name: Back to /b/, !uaVa00FkCs 2011-01-14 6:46

>>19
Back to /b/, ``please''.

Name: Fuck off, !Ep8pui8Vw2 2011-01-14 6:47

>>20
Fuck off, ``autist''.

Name: Back to /b/, !uaVa00FkCs 2011-01-14 6:47

>>21
Back to /b/, ``please''.

Name: Fuck off, !Ep8pui8Vw2 2011-01-14 6:48

>>22
Fuck off, ``faggot''.

inb4 back to /b/

Name: Back to /b/, !uaVa00FkCs 2011-01-14 6:49

>>23
Back to /b/, ``please''.

anon delivers

Name: Anonymous 2011-01-14 6:55

>>11-24
Less of this.

Name: Anonymous 2011-01-14 8:13

>>10
Unless you're using… The App Store™?

Name: Anonymous 2011-01-14 8:50

>>9
uh are you dense? do you know the difference between chromIUM NIGHTLY and chrome?

Name: Anonymous 2011-01-14 10:06

>>27
I AM DENSE LIEK CREAM LOLOLOLOL

Name: Anonymous 2011-01-14 18:52

>>27
Why would you use "Chromium" when you can use Chrome instead?

Name: Anonymous 2011-01-14 19:18

>>10
Auto-update only works when you are root.  I think it's a good idea to not let arbitrary programs write arbitrary system files.

Name: Anonymous 2011-01-14 19:19

>>29
Google spyware.

Name: 2011-01-14 19:19

Kromiumnacht

Name: Anonymous 2011-01-14 19:52

>>32
Reichschrominstallnacht

Name: Anonymous 2013-01-19 14:35

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

Don't change these.
Name: Email:
Entire Thread Thread List