Skip to content

Instantly share code, notes, and snippets.

View hmarcelodn's full-sized avatar

Hugo Marcelo Del Negro hmarcelodn

  • Melon Technologies
  • Argentina
View GitHub Profile
@hmarcelodn
hmarcelodn / gist:7417187
Created November 11, 2013 17:43
Gist for bash to remove Ruby installation when it is generated by compiling the binaries. First check you source folder and you will find the .installed.list (doing ls -la for instance).
#!/bin/bash
for line in $(cat /home/developer/ruby-2.0.0-p247/.installed.list); do
if [[ -f $line ]]; then
eval "rm $line"
elif [[ -d $line ]]; then
eval "rm -rf $line"
fi;
done