Last active
May 9, 2022 16:19
-
-
Save alexishida/999d74bc6bd035b343eaa12daadd71f1 to your computer and use it in GitHub Desktop.
uninstall rbenv
This file contains 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 | |
SCRIPT_USER=$SUDO_USER | |
# Checking if script running with sudo | |
if [[ $(id -u) -ne 0 ]] | |
then echo "Please run with sudo ..." | |
exit 1 | |
fi | |
rm -fr /usr/local/rbenv | |
rm -fr /root/.rbenv | |
rm -fr /home/"$SCRIPT_USER"/.rbenv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment