7 Commits

Author SHA1 Message Date
ale afdbfffd5a manpath and permissions 2020-09-27 23:22:15 +02:00
ale 2d6e52b093 v0.4r3 2020-09-27 23:12:51 +02:00
Gustavo Adolfo Mesa Roldán 3f59be7544 TODOgit commit -m! 2020-09-27 23:08:25 +02:00
Gustavo Adolfo Mesa Roldán e5d2578f4e 0.4r2 2020-09-27 22:36:00 +02:00
Gustavo Adolfo Mesa Roldán 1ee7f59029 0.4rMu 2020-09-27 22:35:27 +02:00
g 8d0e54c3fc Merge pull request 'Subir archivos a ''' (#1) from m/lch:master into master
Reviewed-on: https://gitea.hatthieves.es/cloud/lch/pulls/1
2020-09-27 20:31:22 +00:00
m 0a755b208e Subir archivos a ''
no probado. uninstall añadido.
2020-09-27 20:24:28 +00:00
4 changed files with 52 additions and 9 deletions
+4 -4
View File
@@ -5,7 +5,9 @@
# Estudiar la posibilidad de mostras las lista de extenciones usables en ese momento. Dependiendo de las dependecias instaladas en el sistema.
# Al instalar rar. Comprobar que wget este en el sistema.
# Al instalar rar.
- Comprobar que wget este en el sistema.
- Preguntar si el usario quiere sotware privativo.
# Cambios en 7z:
- Ficheros para añadir como solo extracción:
@@ -14,6 +16,4 @@
- Comprobar qué dependencias son necesarias para esos formatos.
- ¿Ficheros que soporta?
AR, ARJ, CAB, CHM, CPIO, CramFS, DMG, EXT, FAT, GPT, HFS, IHEX, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, QCOW2, RAR, RPM, SquashFS, UDF, UEFI, VDI, VHD, VMDK, WIM, XAR and Z.
# Hacer desinstalador
AR, ARJ, CAB, CHM, CPIO, CramFS, DMG, EXT, FAT, GPT, HFS, IHEX, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, QCOW2, RAR, RPM, SquashFS, UDF, UEFI, VDI, VHD, VMDK, WIM, XAR and Z.
+3 -1
View File
@@ -17,8 +17,10 @@ cp ./lib/* /usr/lib/lch
chmod 755 /usr/bin/lch
echo " Copied lch in /usr/bin"
if [ -z "$MANPATH" ];then
if [ -z "$MANPATH" ] && [ $(manpath 2> /dev/null) ];then
MANPATH=$(manpath)
else
MANPATH="/usr/local/man"
fi
MANDIR=${MANPATH%%:*}/man1
+4 -4
View File
@@ -1,12 +1,12 @@
#!/bin/bash
VERSION=0.4r1
VERSION=0.4r3
DEST=$1
shift 1
ORIG=$@
if [ -z /usr/lib/lch/compressor.sh ]; then . /usr/lib/lch/compressor.sh; else . ./lib/compressor.sh; fi
if [ -z /usr/lib/lch/decompressor.sh ]; then . /usr/lib/lch/decompressor.sh; else . ./lib/decompressor.sh; fi
if [ -z /usr/lib/lch/check.sh ]; then . /usr/lib/lch/check.sh; else . ./lib/check.sh; fi
if [[ -e /usr/lib/lch/compressor.sh ]]; then . /usr/lib/lch/compressor.sh; else . ./lib/compressor.sh; fi
if [[ -e /usr/lib/lch/decompressor.sh ]]; then . /usr/lib/lch/decompressor.sh; else . ./lib/decompressor.sh; fi
if [[ -e /usr/lib/lch/check.sh ]]; then . /usr/lib/lch/check.sh; else . ./lib/check.sh; fi
function help()
{
Executable
+41
View File
@@ -0,0 +1,41 @@
#!/bin/bash
if [ "$UID" != "0" ]; then
echo " Only root can execute this script, sorry."
echo " Try 'sudo $0'"
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 -e "==============================\n"