This commit is contained in:
ale
2020-09-27 23:12:51 +02:00
parent 3f59be7544
commit 2d6e52b093
2 changed files with 7 additions and 8 deletions
+4 -4
View File
@@ -1,12 +1,12 @@
#!/bin/bash
VERSION=0.4r2
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()
{
+3 -4
View File
@@ -2,7 +2,7 @@
if [ "$UID" != "0" ]; then
echo " Only root can execute this script, sorry."
echo " Try 'sudo ./uninstall.sh'"
echo " Try 'sudo $0'"
exit 0
fi
@@ -33,10 +33,9 @@ if [[ -f "$MANDIR/lch.1.gz" ]]; then
rm "$MANDIR/lch.1.gz"
fi
echo "============================="
echo "=============================="
echo " lch uninstalled successfully."
echo "============================="
echo ""
echo -e "==============================\n"