diff --git a/lch b/lch index 2215305..51eb462 100755 --- a/lch +++ b/lch @@ -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() { diff --git a/uninstall.sh b/uninstall.sh index c3cb94b..e235d46 100644 --- a/uninstall.sh +++ b/uninstall.sh @@ -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"