Merge pull request 'Subir archivos a ''' (#1) from m/lch:master into master
Reviewed-on: https://gitea.hatthieves.es/cloud/lch/pulls/1
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$UID" != "0" ]; then
|
||||
echo " Only root can execute this script, sorry."
|
||||
echo " Try 'sudo ./uninstall.sh'"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Si existe el archivo lch
|
||||
if [[ -f "/usr/bin/lch" ]]; then
|
||||
rm /usr/bin/lch
|
||||
fi
|
||||
|
||||
# Si existe el directorio lch
|
||||
if [[ -d "/usr/lib/lch" ]]; then
|
||||
rm -rf "/usr/lib/lch"
|
||||
fi
|
||||
|
||||
# Si nulo manpath
|
||||
if [ -z "$MANPATH" ]; then
|
||||
MANPATH=$(manpath)
|
||||
fi
|
||||
|
||||
MANDIR=${MANPATH%%:*}/man1
|
||||
|
||||
# Si man lch.1
|
||||
if [[ -f "$MANDIR/lch.1" ]]; then
|
||||
rm "$MANDIR/lch.1"
|
||||
fi
|
||||
|
||||
# Si man lch.1.gz
|
||||
if [[ -f "$MANDIR/lch.1.gz" ]]; then
|
||||
rm "$MANDIR/lch.1.gz"
|
||||
fi
|
||||
|
||||
echo "============================="
|
||||
echo " lch uninstalled successfully."
|
||||
echo "============================="
|
||||
echo ""
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user