summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-01-04 09:51:34 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-01-04 09:51:34 +0100
commit18bc481d3cc790cd819509ea64dbab3ec7834544 (patch)
tree76766af57dc593788268ec1bf5c97c94b4d6f6b1
parentae37b2ff02254c8ec0e409c45b7a67cb4a991d9c (diff)
downloadbin-18bc481d3cc790cd819509ea64dbab3ec7834544.zip
bin-18bc481d3cc790cd819509ea64dbab3ec7834544.tar.gz
arch-up: add usefull bash line to reinstall ruby gems
-rwxr-xr-xarch-up2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch-up b/arch-up
index 54df3cb..1ea8d72 100755
--- a/arch-up
+++ b/arch-up
@@ -12,6 +12,8 @@ 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
+
sudo_run "rm -fr /usr/lib/ruby/gems/*"
run "/usr/bin/gem update --no-document"
run "/usr/bin/gem clean"