Añadida página man y cambios en install.sh y lch

This commit is contained in:
2020-07-15 15:18:28 +02:00
parent 1312541ce6
commit 8c85d2db14
4 changed files with 85 additions and 6 deletions
+13 -5
View File
@@ -1,5 +1,5 @@
#!/bin/bash
VERSION=0.1r6
VERSION=0.1r7
if [ "$1" = "version" ] || [ "$1" = "--version" ] || [ "$1" = "-v" ]
then
@@ -12,7 +12,7 @@ else
echo ""
fi
function descompressor()
function decompressor()
{
case $1 in
*.tar)
@@ -40,7 +40,7 @@ function descompressor()
7za e $1
;;
*)
echo "Extent not found."
echo "Extension not found."
echo "For more information --help"
echo ""
;;
@@ -118,6 +118,14 @@ then
exit 0
fi
if [ "$1" = "version" ] || [ "$1" = "--version" ] || [ "$1" = "-v" ]
then
echo ""
echo "lch $VERSION"
echo ""
exit 0
fi
if [ -z "$1" ] || [ -n "$3" ]
then
echo "Wrong arguments"
@@ -132,9 +140,9 @@ else
echo ""
compressor $1 $2
else
echo "Descompressor:"
echo "Decompressor:"
echo "--------------"
echo ""
descompressor $1
decompressor $1
fi
fi