summaryrefslogtreecommitdiffstats
path: root/update
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2021-02-12 16:47:00 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2021-02-12 16:47:00 +0100
commit6b7dd15ffbd9f369bc0500fba836aba57e115169 (patch)
tree9bc3bf1544b6af9c45730a8993da3453204c1c62 /update
parented642f1dcfccfb82dc7fc96a10ea2fdc6931b503 (diff)
downloadbin-6b7dd15ffbd9f369bc0500fba836aba57e115169.zip
bin-6b7dd15ffbd9f369bc0500fba836aba57e115169.tar.gz
update : follow hostname change
Diffstat (limited to 'update')
-rwxr-xr-xupdate2
1 files changed, 1 insertions, 1 deletions
diff --git a/update b/update
index ac413d9..0eacdd6 100755
--- a/update
+++ b/update
@@ -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