Fix edge case in ubuntu dependency install script
This commit is contained in:
parent
65af1d2c5c
commit
1efa3b159b
@ -66,7 +66,8 @@ elif [ "$OS" == "ubuntu" ]; then
|
|||||||
out=$?
|
out=$?
|
||||||
if [ "$out" == 1 ]; then
|
if [ "$out" == 1 ]; then
|
||||||
requestPermissions "${ubuntu_packages[@]}"
|
requestPermissions "${ubuntu_packages[@]}"
|
||||||
$SUDO bash -c "apt-get update;apt-get install -y software-properties-common;add-apt-repository ppa:ubuntu-toolchain-r/test -y;dpkg --add-architecture i386;apt-get update;apt-get install -y "${ubuntu_packages[@]}""
|
pkgs="${ubuntu_packages[@]}"
|
||||||
|
$SUDO bash -c "apt-get update;apt-get install -y software-properties-common;add-apt-repository ppa:ubuntu-toolchain-r/test -y;dpkg --add-architecture i386;apt-get update;apt-get install -y $pkgs"
|
||||||
fi
|
fi
|
||||||
elif [ "$OS" == "fedora" ]; then
|
elif [ "$OS" == "fedora" ]; then
|
||||||
rpm -q "${fedora_packages[@]}" > /dev/null 2>&1
|
rpm -q "${fedora_packages[@]}" > /dev/null 2>&1
|
||||||
|
Reference in New Issue
Block a user