diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2021-02-12 16:47:00 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2021-02-12 16:47:00 +0100 |
commit | 6b7dd15ffbd9f369bc0500fba836aba57e115169 (patch) | |
tree | 9bc3bf1544b6af9c45730a8993da3453204c1c62 /update | |
parent | ed642f1dcfccfb82dc7fc96a10ea2fdc6931b503 (diff) | |
download | bin-6b7dd15ffbd9f369bc0500fba836aba57e115169.zip bin-6b7dd15ffbd9f369bc0500fba836aba57e115169.tar.gz |
update : follow hostname change
Diffstat (limited to 'update')
-rwxr-xr-x | update | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -29,7 +29,7 @@ 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 ] + if [ $(hostname) = "MYHMSA" -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 |