summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xupdate5
1 files changed, 5 insertions, 0 deletions
diff --git a/update b/update
index 08d7303..d112fd2 100755
--- a/update
+++ b/update
@@ -27,6 +27,11 @@ function update_gem() {
sudo_run "rm -fr /usr/lib/ruby/gems/*"
run "/usr/bin/gem update --no-document"
run "/usr/bin/gem clean"
+ if [ $(hostname) = "HMSA0065N" -a $(ls -l $GEM_HOME/cache/*.gem 2>/dev/null | wc -l) -gt 0 ]
+ then
+ for gem in $GEM_HOME/cache/*.gem; do gem inabox $gem ; done
+ rm $GEM_HOME/cache/*.gem 2>/dev/null
+ fi
}
function update_pkgs() {