Linux Compressor Humanizer https://lch.hatthieves.es
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.

44 lines
801 B

3 years ago
3 years ago
3 years ago
3 years ago
  1. #!/usr/bin/env bash
  2. if [ "$UID" != "0" ]; then
  3. echo " Only root can execute this script, sorry."
  4. echo " Try 'sudo $0'"
  5. exit 0
  6. fi
  7. # Si existe el archivo lch
  8. if [[ -f "/usr/bin/lch" ]]; then
  9. rm /usr/bin/lch
  10. fi
  11. # Si existe el directorio lch
  12. if [[ -d "/usr/lib/lch" ]]; then
  13. rm -rf "/usr/lib/lch"
  14. fi
  15. # Si existe man
  16. if [ -x "$(command -v man)" ]; then
  17. # Si nulo manpath
  18. if [ -z "$MANPATH" ]; then
  19. MANPATH=$(manpath)
  20. fi
  21. MANDIR=${MANPATH%%:*}/man1
  22. # Si man lch.1
  23. if [[ -f "$MANDIR/lch.1" ]]; then
  24. rm "$MANDIR/lch.1"
  25. fi
  26. # Si man lch.1.gz
  27. if [[ -f "$MANDIR/lch.1.gz" ]]; then
  28. rm "$MANDIR/lch.1.gz"
  29. fi
  30. fi
  31. echo "=============================="
  32. echo " lch uninstalled successfully."
  33. echo -e "==============================\n"