3 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
4 changed files with 13 additions and 10 deletions
+3 -1
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. # 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: # Cambios en 7z:
- Ficheros para añadir como solo extracción: - Ficheros para añadir como solo extracción:
+3 -1
View File
@@ -17,8 +17,10 @@ cp ./lib/* /usr/lib/lch
chmod 755 /usr/bin/lch chmod 755 /usr/bin/lch
echo " Copied lch in /usr/bin" echo " Copied lch in /usr/bin"
if [ -z "$MANPATH" ];then if [ -z "$MANPATH" ] && [ $(manpath 2> /dev/null) ];then
MANPATH=$(manpath) MANPATH=$(manpath)
else
MANPATH="/usr/local/man"
fi fi
MANDIR=${MANPATH%%:*}/man1 MANDIR=${MANPATH%%:*}/man1
+4 -4
View File
@@ -1,12 +1,12 @@
#!/bin/bash #!/bin/bash
VERSION=0.4r2 VERSION=0.4r3
DEST=$1 DEST=$1
shift 1 shift 1
ORIG=$@ ORIG=$@
if [ -z /usr/lib/lch/compressor.sh ]; then . /usr/lib/lch/compressor.sh; else . ./lib/compressor.sh; fi if [[ -e /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 [[ -e /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/check.sh ]]; then . /usr/lib/lch/check.sh; else . ./lib/check.sh; fi
function help() function help()
{ {
Regular → Executable
+3 -4
View File
@@ -2,7 +2,7 @@
if [ "$UID" != "0" ]; then if [ "$UID" != "0" ]; then
echo " Only root can execute this script, sorry." echo " Only root can execute this script, sorry."
echo " Try 'sudo ./uninstall.sh'" echo " Try 'sudo $0'"
exit 0 exit 0
fi fi
@@ -33,10 +33,9 @@ if [[ -f "$MANDIR/lch.1.gz" ]]; then
rm "$MANDIR/lch.1.gz" rm "$MANDIR/lch.1.gz"
fi fi
echo "=============================" echo "=============================="
echo " lch uninstalled successfully." echo " lch uninstalled successfully."
echo "=============================" echo -e "==============================\n"
echo ""