Browse Source

0.6r5

pull/3/head
ale 3 years ago
parent
commit
909c8186ca
3 changed files with 10 additions and 5 deletions
  1. +1
    -1
      lch
  2. +8
    -3
      lib/installer.sh
  3. +1
    -1
      lib/installers/rpm.sh

+ 1
- 1
lch View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
VERSION=0.6r4
VERSION=0.6r5
DEST=$1
shift 1
ORIG=$@


+ 8
- 3
lib/installer.sh View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
function rarInstall(){
if [ -e "$(command -v wget)" ]
if [ -e "$(command -v wget)" ] || [ -e "$(command -v curl)" ]
then
if [[ "$(uname -m)" == "x86_64" ]]
then
@ -11,7 +11,12 @@ function rarInstall(){
RAR_URL="https://www.rarlab.com/rar/rarlinux-5.9.1.tar.gz"
RAR_FILE="rarlinux-5.9.1.tar.gz"
fi
wget -q $RAR_URL > /dev/null
if [ -e "$(command -v wget)" ]
then
wget -q $RAR_URL > /dev/null
else
curl -s -o $RAR_FILE $RAR_URL > /dev/null
fi
tar -zxvf $RAR_FILE > /dev/null
cd rar
cp -v rar unrar /usr/local/bin/ > /dev/null
@ -19,7 +24,7 @@ function rarInstall(){
rm -r rar $RAR_FILE > /dev/null
complete_install "rar"
else
echo -e "\n\e[91m[Error]\e[0m - wget is not installed, so rar could not be installed.\nPlease install wget.\n"
echo -e "\n\e[91m[Error]\e[0m - wget or curl is not installed, so rar could not be installed.\nPlease install wget.\n"
read -p "Press [ENTER] to continue installing or [CTRL+C] to exit."
fi
}


+ 1
- 1
lib/installers/rpm.sh View File

@ -3,7 +3,7 @@
# Functions
function get_dep(){
if [[ $@ -ne "p7zip-plugins" ]]; then
if [[ $@ == "p7zip-plugins" ]]; then
yum install -y -q $@ 1> /dev/null
else
yum install -y -q $@ 1> /dev/null


Loading…
Cancel
Save