Browse Source

v0.4r3

pull/8/head
ale 4 years ago
parent
commit
2d6e52b093
2 changed files with 7 additions and 8 deletions
  1. +4
    -4
      lch
  2. +3
    -4
      uninstall.sh

+ 4
- 4
lch View File

@ -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 [ -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() function help()
{ {


+ 3
- 4
uninstall.sh View File

@ -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 ""
echo -e "==============================\n"

Loading…
Cancel
Save