uninstall.sh 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. #!/bin/bash
  2. privilege_escalation="sudo "
  3. dir_path=$HOME/.cache/xoronos
  4. if [ -d "$dir_path" ]; then
  5. cmd="rm -r $dir_path"
  6. echo "$cmd" ; eval "$cmd"
  7. fi
  8. dir_path=$HOME/.local/xoronos
  9. if [ -d "$dir_path" ]; then
  10. cmd="rm -r $dir_path"
  11. echo "$cmd" ; eval "$cmd"
  12. fi
  13. file_path=/usr/local/bin/xrntranslate-cli
  14. if [ -e "$file_path" ]; then
  15. cmd="$privilege_escalation rm $file_path"
  16. echo "$cmd" ; eval "$cmd"
  17. fi
  18. file_path=/usr/local/bin/xrnserver-cli
  19. if [ -e "$file_path" ]; then
  20. cmd="$privilege_escalation rm $file_path"
  21. echo "$cmd" ; eval "$cmd"
  22. fi
  23. file_path=/usr/local/bin/xrnarchive-cli
  24. if [ -e "$file_path" ]; then
  25. cmd="$privilege_escalation rm $file_path"
  26. echo "$cmd" ; eval "$cmd"
  27. fi
  28. file_path=/usr/local/bin/xrnlib-cli
  29. if [ -e "$file_path" ]; then
  30. cmd="$privilege_escalation rm $file_path"
  31. echo "$cmd" ; eval "$cmd"
  32. fi
  33. file_path=/usr/local/bin/xrnlib-128-cli
  34. if [ -e "$file_path" ]; then
  35. cmd="$privilege_escalation rm $file_path"
  36. echo "$cmd" ; eval "$cmd"
  37. fi
  38. file_path=/usr/local/bin/xrnlib-256-cli
  39. if [ -e "$file_path" ]; then
  40. cmd="$privilege_escalation rm $file_path"
  41. echo "$cmd" ; eval "$cmd"
  42. fi
  43. dir_path=/usr/lib/xoronos
  44. if [ -d "$dir_path" ]; then
  45. cmd="$privilege_escalation rm -r $dir_path"
  46. echo "$cmd" ; eval "$cmd"
  47. fi
  48. file_path=/etc/bash_completion.d/xrnserver-cli-autocomplete.sh
  49. if [ -e "$file_path" ]; then
  50. cmd="$privilege_escalation rm $file_path"
  51. echo "$cmd" ; eval "$cmd"
  52. fi
  53. file_path=/etc/bash_completion.d/xrnarchive-cli-autocomplete.sh
  54. if [ -e "$file_path" ]; then
  55. cmd="$privilege_escalation rm $file_path"
  56. echo "$cmd" ; eval "$cmd"
  57. fi
  58. file_path=/etc/bash_completion.d/xrnlib-cli-autocomplete.sh
  59. if [ -e "$file_path" ]; then
  60. cmd="$privilege_escalation rm $file_path"
  61. echo "$cmd" ; eval "$cmd"
  62. fi
  63. file_path=/etc/bash_completion.d/xrnconv-cli-autocomplete.sh
  64. if [ -e "$file_path" ]; then
  65. cmd="$privilege_escalation rm $file_path"
  66. echo "$cmd" ; eval "$cmd"
  67. fi
  68. file_path=/usr/share/pandoc/data/templates/xoronos.tex
  69. if [ -e "$file_path" ] ; then
  70. cmd="$privilege_escalation rm $file_path"
  71. echo "$cmd" ; eval "$cmd"
  72. fi
  73. file_path=/usr/lib/xoronos/py/splitjoin.cpython*
  74. if [ -e $file_path ] ; then
  75. cmd="$privilege_escalation rm $file_path "
  76. echo "$cmd" ; eval "$cmd"
  77. fi
  78. file_path=/usr/local/bin/xrnconv-cli
  79. if [ -e "$file_path" ]; then
  80. cmd="$privilege_escalation rm $file_path "
  81. echo "$cmd" ; eval "$cmd"
  82. fi
  83. file_path=/usr/lib/xoronos/py/xrntools_description.json
  84. if [ -e "$file_path" ]; then
  85. cmd="$privilege_escalation rm $file_path "
  86. echo "$cmd" ; eval "$cmd"
  87. fi