From b6d6e39492315219a8d5249f4178051fc3837101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 1 Nov 2017 11:36:46 +0100 Subject: update : push gems to geminabox --- update | 5 +++++ 1 file changed, 5 insertions(+) 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() { -- cgit v1.1-2-g2b99