commit 61c2969316a3ca910be9b8a0300e1e63b54a020a parent 8b7a1bcca1b2ef140b1fa6fd2d2d22cbb63c8ffd Author: Anders Damsgaard <anders.damsgaard@geo.au.dk> Date: Thu, 3 Oct 2013 22:16:04 +0200 added brew commands Diffstat:
M | bin/uu | | | 20 | +++++++++++++++----- |
1 file changed, 15 insertions(+), 5 deletions(-)
diff --git a/bin/uu b/bin/uu @@ -1,6 +1,16 @@ #!/bin/sh -sudo apt-get update && \ - sudo apt-get upgrade && \ - sudo apt-get dist-upgrade && \ - sudo apt-get autoremove && \ - sudo apt-get clean +UNAMESTR=`uname` +if [[ "$UNAMESTR" == 'Linux' ]]; then + sudo apt-get update && \ + sudo apt-get upgrade && \ + sudo apt-get dist-upgrade && \ + sudo apt-get autoremove && \ + sudo apt-get clean +elif [[ "$UNAMESTR" == 'Darwin' ]]; then + brew update && \ + brew upgrade && \ + brew cleanup +else + echo "Platform not supported" + exit 1 +fi