UNINSTALL 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #!/bin/bash
  2. #
  3. # Masalla Icon Theme
  4. #
  5. # Copyright 2018 hayder majid <hayder@riseup.net>
  6. #
  7. # This program is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 3 of the License, or
  10. # (at your option) any later version.
  11. #
  12. # This program is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with this program; if not, you can download it from here:
  19. # https://www.gnu.org/licenses/gpl-3.0.html
  20. #
  21. # Uninstalling script for masalla-colors
  22. echo "We're sorry for removing Masalla Icon Theme from your system :-("
  23. ROOT_UID=0
  24. if [ "$UID" -ne "$ROOT_UID" ]
  25. then
  26. echo "masalla-colors was installed in $HOME/.icons and will be removed.According to your choices during installation, some default icons will be restored."
  27. else
  28. echo "masalla-colors installed in /usr/share/icons will be removed. According to your choices during installation, some default icons will be restored."
  29. fi
  30. echo ""
  31. read -p "Do you want to continue ? [Y]es, [N]o : " response
  32. case $response in
  33. [Yy]* ) ;;
  34. [Nn]* ) exit 99;;
  35. * ) echo "Wrong value: uninstall aborted."; exit 1;;
  36. esac
  37. if [ "$UID" -eq "$ROOT_UID" ]
  38. then
  39. ./CLEAN
  40. else
  41. ./CLEAN
  42. fi
  43. echo ""
  44. echo "To find the latest update, please check the main repository :"
  45. echo " https://notabug.org/masalla-art/masalla-icon-theme"
  46. echo "Uninstall complete. Bey :-("
  47. exit 0