Skip to content

Commit

Permalink
-full to delete directories with configs on uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
NorseGaud committed Aug 22, 2018
1 parent 2ad4127 commit 042a341
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion eosio_uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,15 @@ if [ -d "/usr/local/eosio" ]; then
for binary in ${binaries[@]}; do
rm ${binary}
done
# Handle cleanup of directories created from installation
if [ "$1" == "--full" ]; then
if [ -d ~/Library/Application\ Support/eosio ]; then rm -rf ~/Library/Application\ Support/eosio; fi # Mac OS
if [ -d ~/.local/share/eosio ]; then rm -rf ~/.local/share/eosio; fi # Linux
if [ -d /usr/local/eosio ]; then rm -rf /usr/local/eosio; fi
fi
popd &> /dev/null
break;;
[Nn]* )
[Nn]* )
printf "\tAborting uninstall\n\n"
exit -1;;
esac
Expand Down

0 comments on commit 042a341

Please sign in to comment.