From 1efa3b159b2e5a2425dae35c0359d2c8b4b4452b Mon Sep 17 00:00:00 2001 From: TotallyNotElite <1yourexperiment@protonmail.com> Date: Thu, 13 Feb 2020 11:04:59 +0100 Subject: [PATCH] Fix edge case in ubuntu dependency install script --- scripts/dependencycheck | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/dependencycheck b/scripts/dependencycheck index aad5fdd5..ae5e53dd 100755 --- a/scripts/dependencycheck +++ b/scripts/dependencycheck @@ -66,7 +66,8 @@ elif [ "$OS" == "ubuntu" ]; then out=$? if [ "$out" == 1 ]; then 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 elif [ "$OS" == "fedora" ]; then rpm -q "${fedora_packages[@]}" > /dev/null 2>&1