0.2r2 - Install the compressors dependences
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
VERSION=0.2r1
|
VERSION=0.2r2
|
||||||
DEST=$1
|
DEST=$1
|
||||||
shift 1
|
shift 1
|
||||||
ORIG=$@
|
ORIG=$@
|
||||||
@@ -87,12 +87,13 @@ function help()
|
|||||||
echo "Help:"
|
echo "Help:"
|
||||||
echo "-----"
|
echo "-----"
|
||||||
echo ""
|
echo ""
|
||||||
echo "lch [-h] [-v] [-c] [FILE [FILE]]"
|
echo "lch [-h] [-v] [-c] [-i] [FILE [FILE]]"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Examples:"
|
echo "Examples:"
|
||||||
echo "$ lch -h -This help"
|
echo "$ lch -h -This help"
|
||||||
echo "$ lch -v -print version"
|
echo "$ lch -v -print version"
|
||||||
echo "$ lch -c -check compresion systems"
|
echo "$ lch -c -check compresion systems"
|
||||||
|
echo "$ lch -i -install the compressors dependences."
|
||||||
echo "$ lch file.zip /home/file -Compress"
|
echo "$ lch file.zip /home/file -Compress"
|
||||||
echo "$ lch file.zip -Decompress"
|
echo "$ lch file.zip -Decompress"
|
||||||
echo ""
|
echo ""
|
||||||
@@ -130,6 +131,23 @@ function check()
|
|||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function install()
|
||||||
|
{
|
||||||
|
echo "Install dependences"
|
||||||
|
echo ""
|
||||||
|
if [ -x "$(command -v apt)" ]
|
||||||
|
then
|
||||||
|
echo "Detect APT system"
|
||||||
|
echo ""
|
||||||
|
apt install tar bzip2 gzip zip p7zip-full
|
||||||
|
else
|
||||||
|
echo "No detect installer"
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
if [ "$DEST" = "--help" ] || [ "$DEST" = "-h" ]
|
if [ "$DEST" = "--help" ] || [ "$DEST" = "-h" ]
|
||||||
then
|
then
|
||||||
help
|
help
|
||||||
@@ -142,6 +160,12 @@ then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$DEST" = "--install" ] || [ "$DEST" = "-i" ]
|
||||||
|
then
|
||||||
|
install
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$DEST" = "--version" ] || [ "$DEST" = "-v" ]
|
if [ "$DEST" = "--version" ] || [ "$DEST" = "-v" ]
|
||||||
then
|
then
|
||||||
echo "Linux Compression Humanized $VERSION"
|
echo "Linux Compression Humanized $VERSION"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.TH LCH 1 "3 August 2020"
|
.TH LCH 1 "26 September 2020"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
lch \- command\-line compressor and decompressor for humans
|
lch \- command\-line compressor and decompressor for humans
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@@ -24,6 +24,9 @@ Print current version.
|
|||||||
.TP
|
.TP
|
||||||
\fI\-c, \-\-check\fP
|
\fI\-c, \-\-check\fP
|
||||||
Print a check the compressors installed.
|
Print a check the compressors installed.
|
||||||
|
.TP
|
||||||
|
\fI\-i, \-\-install\fP
|
||||||
|
Install the compressors dependences.
|
||||||
|
|
||||||
|
|
||||||
.SH EXAMPLES
|
.SH EXAMPLES
|
||||||
|
|||||||
Reference in New Issue
Block a user