From c44e43a05bd492e460f970232d8dc25edfbe235f Mon Sep 17 00:00:00 2001 From: Alexandros Theodotou Date: Tue, 11 Aug 2020 23:47:07 +0100 Subject: [PATCH] fix script failing when zenity is not found --- installer.sh.in | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/installer.sh.in b/installer.sh.in index a7f4122..fc13de9 100755 --- a/installer.sh.in +++ b/installer.sh.in @@ -44,10 +44,7 @@ ubuntu_20_04_str="Ubuntu 20.04" zenity_width=360 have_zenity=0 -command -v zenity -if [ $? -eq 0 ]; then - have_zenity=1 -fi +command -v zenity && have_zenity=1 || true if [[ "$ID" = *"debian"* ]]; then if [[ "$VERSION_ID" = *"10"* ]]; then