A nice little utility for downloading ISO images
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
920 B

  1. #!/bin/bash
  2. # This uninstall script must be run as root, otherwise it will not work
  3. # correctly.
  4. if [ $USER = "root" ]; then
  5. cd "$( dirname "${BASH_SOURCE[0]}" )" || exit
  6. echo '== Uninstalling Tux Disc =='
  7. echo ''
  8. if [ -e /usr/bin/tux-disc ]; then
  9. echo '==> Removing /usr/bin link'
  10. rm /usr/bin/tux-disc && echo ' -> Link removed!' || echo ' -> Link not removed :('
  11. fi
  12. if [ -e /usr/share/applications/tux-disc.desktop ]; then
  13. echo '==> Removing desktop file'
  14. rm /usr/share/applications/tux-disc.desktop && echo ' -> Desktop file removed!' || echo ' -> Desktop file not removed :('
  15. fi
  16. if [ -d /usr/lib/tux-disc ]; then
  17. echo '==> Removing /usr/lib/tux-disc'
  18. rm -r /usr/lib/tux-disc && echo ' -> Folder removed!' || echo ' -> Folder not removed :('
  19. echo ''
  20. echo '== Uninstall complete! =='
  21. fi
  22. else
  23. echo 'This build script must be run as root. Please either login as root or use sudo'
  24. fi