Skip to content

Instantly share code, notes, and snippets.

@chrisbuttery
Created November 29, 2015 00:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisbuttery/cf20c1769ff613645060 to your computer and use it in GitHub Desktop.
Save chrisbuttery/cf20c1769ff613645060 to your computer and use it in GitHub Desktop.
Uninstall Elm
#!/bin/sh
set -e
echo "Warning: You are about to remove all Elm executables!"
installdir=/usr/local/bin
for bin in elm elm-compiler elm-get elm-reactor elm-repl elm-doc elm-server elm-package elm-make
do
if [ -f $installdir/$bin ]; then
sudo rm -f $installdir/$bin
fi
if [ -f $installdir/$bin-unwrapped ]; then
sudo rm -f $installdir/$bin-unwrapped
fi
done
sharedir=/usr/local/share/elm
sudo rm -rf $sharedir
@chrisbuttery
Copy link
Author

chmod +x uninstall.sh   

@chrisbuttery
Copy link
Author

# execute
./ uninstall.sh  

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment