CLEAN 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. # cleaning script for masalla-colors
  21. # Written by Hayder Majid(Hayder Ctee) <hayder@riseup.net>
  22. if [[ -d /usr/share/icons/masalla-black ]]; then
  23. echo "folder found in root";
  24. rm -Rf /usr/share/icons/masalla-red;
  25. rm -Rf /usr/share/icons/masalla-red-dark;
  26. rm -Rf /usr/share/icons/masalla-yellow;
  27. rm -Rf /usr/share/icons/masalla-yellow-dark;
  28. rm -Rf /usr/share/icons/masalla-grey;
  29. rm -Rf /usr/share/icons/masalla-grey-dark;
  30. rm -Rf /usr/share/icons/masalla-green;
  31. rm -Rf /usr/share/icons/masalla-green-dark;
  32. rm -Rf /usr/share/icons/masalla-violet;
  33. rm -Rf /usr/share/icons/masalla-violet-dark;
  34. rm -Rf /usr/share/icons/masalla-brown;
  35. rm -Rf /usr/share/icons/masalla-brown-dark;
  36. rm -Rf /usr/share/icons/masalla-black;
  37. rm -Rf /usr/share/icons/masalla-black-dark;
  38. echo "all direcrories was deleted";
  39. fi
  40. if [ -d $HOME/.icons/masalla-black ]; then
  41. echo "folder found in home";
  42. rm -Rf $HOME/.icons/masalla-red;
  43. rm -Rf $HOME/.icons/masalla-red-dark;
  44. rm -Rf $HOME/.icons/masalla-yellow;
  45. rm -Rf $HOME/.icons/masalla-yellow-dark;
  46. rm -Rf $HOME/.icons/masalla-grey;
  47. rm -Rf $HOME/.icons/masalla-grey-dark;
  48. rm -Rf $HOME/.icons/masalla-green;
  49. rm -Rf $HOME/.icons/masalla-green-dark;
  50. rm -Rf $HOME/.icons/masalla-violet;
  51. rm -Rf $HOME/.icons/masalla-violet-dark;
  52. rm -Rf $HOME/.icons/masalla-brown;
  53. rm -Rf $HOME/.icons/masalla-brown-dark;
  54. rm -Rf $HOME/.icons/masalla-black;
  55. rm -Rf $HOME/.icons/masalla-black-dark;
  56. fi
  57. #if [[ $(id -u) -ne 0 ]]; then
  58. #echo "you run script as root";
  59. #rm_r;
  60. #else
  61. #echo "you run script as user";
  62. #rm_u;
  63. #fi