diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2017-11-01 11:36:46 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2017-11-01 11:36:46 +0100 |
commit | b6d6e39492315219a8d5249f4178051fc3837101 (patch) | |
tree | 46547b5ccac735273c0acb4b92df65f26533e628 /update | |
parent | 6b21143c3188b622c4be3b906e04ceb5f1f4b3d5 (diff) | |
download | bin-b6d6e39492315219a8d5249f4178051fc3837101.zip bin-b6d6e39492315219a8d5249f4178051fc3837101.tar.gz |
update : push gems to geminabox
Diffstat (limited to 'update')
-rwxr-xr-x | update | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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() { |