summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-02-12 09:29:17 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2018-02-12 09:29:17 +0100
commit01821aab1ac7f6f2da7372ce3d628caad033559f (patch)
tree3457b432e6a97bf78dd0517d3dcee0f24a34b6cc
parent7ee6522cf8c34f41fb692e35da4a7c33753e7782 (diff)
downloadbin-01821aab1ac7f6f2da7372ce3d628caad033559f.zip
bin-01821aab1ac7f6f2da7372ce3d628caad033559f.tar.gz
update : fix gem migration cmd line
-rwxr-xr-xupdate2
1 files changed, 1 insertions, 1 deletions
diff --git a/update b/update
index bafdb08..a0f88aa 100755
--- a/update
+++ b/update
@@ -23,7 +23,7 @@ function sudo_run() {
}
function update_gem() {
- # ls -1 .gem/ruby/2.2.0/specifications/ | sed 's/-\([0-9]\+\.\)\+gemspec//' | while read gem; do gem install $gem; done
+ # cd .gem/ruby/X.Y.0/specifications/ && ls -1 *.gemspec | sed 's/-\([0-9]\+\.\)\+gemspec//' | while read gem; do gem install $gem; done
sudo_run "rm -fr /usr/lib/ruby/gems/*"
run "/usr/bin/gem update --no-document"
run "/usr/bin/gem clean"