From 67037b389c6860502e38493a809f61dd77d3ab21 Mon Sep 17 00:00:00 2001 From: Andre Wohnsland <50302161+AndreWohnsland@users.noreply.github.com> Date: Sat, 20 Jul 2024 09:39:35 +0200 Subject: [PATCH] Make sure lxterminal is installed --- scripts/all_in_one.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/all_in_one.sh b/scripts/all_in_one.sh index e430002d..767f3b30 100644 --- a/scripts/all_in_one.sh +++ b/scripts/all_in_one.sh @@ -75,6 +75,17 @@ else echo "WARNING: /etc/debian_version not found. This script might not work properly on none debian systems." fi +# ensure lxterminal is installed +echo "~ Check if lxterminal is installed ~" +lxterminal --version 2>&1 >/dev/null +LXTERMINAL_IS_AVAILABLE=$? +if [ $LXTERMINAL_IS_AVAILABLE -ne 0 ]; then + echo "Lxterminal was not found, installing it ..." + sudo apt install lxterminal +else + echo "Lxterminal is already installed!" +fi + # Now gets CocktailBerry source echo "~ Getting the CocktailBerry project from GitHub ... ~" echo "It will be located at ~/CocktailBerry"