From c5e9ba27ae46716b06c9c20db6b8200739a8a7da Mon Sep 17 00:00:00 2001 From: cporter-self Date: Tue, 4 Jun 2019 03:37:21 -0400 Subject: [PATCH] Fixed Ubuntu 'python-software-properties Not Found' Om Ubuntu 18.04, an error would occur where python-software-properties was not found. The next part of the script accounted for this, but "set +e" was not called, so the script crashed instead of properly handling the missing package. --- install-deps | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install-deps b/install-deps index b1d5a4d44..e1bea385d 100755 --- a/install-deps +++ b/install-deps @@ -175,8 +175,10 @@ elif [[ "$(uname)" == 'Linux' ]]; then echo "Some portion of the update is failed" fi # python-software-properties is required for apt-add-repository + set +e sudo apt-get install -y python-software-properties - echo "==> Found Ubuntu version ${ubuntu_major_version}.xx" + set -e + echo "==> Found Ubuntu version ${ubuntu_major_version}.xx" if [[ $ubuntu_major_version -lt '12' ]]; then echo '==> Ubuntu version not supported.' exit 1