v0.4r3
This commit is contained in:
@@ -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()
|
||||||
{
|
{
|
||||||
|
|||||||
+3
-4
@@ -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 ""
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user