Permalink
Browse files

Add Linux support to sys-update.

  • Loading branch information...
1 parent 1962187 commit e1cedf2bc36c6be0638d1e554511b0252ebf8d2d @SaberUK committed Oct 27, 2012
Showing with 15 additions and 6 deletions.
  1. +15 −6 bin/sys-update
View
@@ -4,9 +4,18 @@
# ==============================================================================
# Copyright (C) 2012 Peter "SaberUK" Powell <petpow@saberuk.com>
# ==============================================================================
-brew update
-brew upgrade
-brew cleanup -s
-gem update --system
-gem update
-gem cleanup
+
+if [[ `uname -s` == 'Darwin' ]]; then
+ brew update
+ brew upgrade
+ brew cleanup -s
+ gem update --system
+ gem update
+ gem cleanup
+elif [[ `uname -s` == 'Linux' ]]; then
+ sudo apt-get update
+ sudo apt-get upgrade
+ sudo apt-get autoclean
+ sudo gem update
+ sudo gem cleanup
+fi

0 comments on commit e1cedf2

Please sign in to comment.