summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2017-11-01 11:36:46 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2017-11-01 11:36:46 +0100
commitb6d6e39492315219a8d5249f4178051fc3837101 (patch)
tree46547b5ccac735273c0acb4b92df65f26533e628
parent6b21143c3188b622c4be3b906e04ceb5f1f4b3d5 (diff)
downloadbin-b6d6e39492315219a8d5249f4178051fc3837101.zip
bin-b6d6e39492315219a8d5249f4178051fc3837101.tar.gz
update : push gems to geminabox
-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() {