From 311a4ed0c7cde4f1fd4aaa8a3232733ca555cba3 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Thu, 21 Jan 2021 15:15:12 +0100 Subject: [PATCH] Tools: correct package_is_installed check --- Tools/environment_install/install-prereqs-ubuntu.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/environment_install/install-prereqs-ubuntu.sh b/Tools/environment_install/install-prereqs-ubuntu.sh index 3ab34040d0..c0d5b782ed 100755 --- a/Tools/environment_install/install-prereqs-ubuntu.sh +++ b/Tools/environment_install/install-prereqs-ubuntu.sh @@ -51,7 +51,7 @@ function heading() { } # Install lsb-release as it is needed to check Ubuntu version -if package_is_installed "lsb-release" -eq 1; then +if ! package_is_installed "lsb-release"; then heading "Installing lsb-release" $APT_GET install lsb-release echo "Done!" @@ -229,7 +229,7 @@ if [[ -z "${DO_AP_STM_ENV}" ]] && maybe_prompt_user "Install ArduPilot STM32 too fi heading "Removing modemmanager package that could conflict with firmware uploading" -if package_is_installed "modemmanager" -eq 1; then +if package_is_installed "modemmanager"; then $APT_GET remove modemmanager fi echo "Done!"