Created
November 11, 2013 17:43
-
-
Save hmarcelodn/7417187 to your computer and use it in GitHub Desktop.
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment