mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-05 21:28:48 +00:00
fixed pkg manager checks
This commit is contained in:
parent
f1fc19fed8
commit
45f7ac486e
|
@ -53,12 +53,12 @@ installDepend() {
|
||||||
fi
|
fi
|
||||||
"$AUR_HELPER" --noconfirm -S "$DEPENDENCIES"
|
"$AUR_HELPER" --noconfirm -S "$DEPENDENCIES"
|
||||||
;;
|
;;
|
||||||
apt)
|
apt|apt-get|nala)
|
||||||
COMPILEDEPS='build-essential'
|
COMPILEDEPS='build-essential'
|
||||||
sudo "$PACKAGER" update
|
sudo "$PACKAGER" update
|
||||||
sudo dpkg --add-architecture i386
|
sudo dpkg --add-architecture i386
|
||||||
sudo "$PACKAGER" update
|
sudo "$PACKAGER" update
|
||||||
sudo "$PACKAGER" install -y "$DEPENDENCIES" $COMPILEDEPS
|
sudo "$PACKAGER" install -y $DEPENDENCIES $COMPILEDEPS
|
||||||
;;
|
;;
|
||||||
dnf)
|
dnf)
|
||||||
COMPILEDEPS='@development-tools'
|
COMPILEDEPS='@development-tools'
|
||||||
|
@ -74,7 +74,7 @@ installDepend() {
|
||||||
sudo "$PACKAGER" --non-interactive install libgcc_s1-gcc7-32bit glibc-devel-32bit
|
sudo "$PACKAGER" --non-interactive install libgcc_s1-gcc7-32bit glibc-devel-32bit
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
sudo "$PACKAGER" install -y "$DEPENDENCIES"
|
sudo "$PACKAGER" install -y $DEPENDENCIES # Fixed bug where no packages found on debian-based
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user