From fbee8be1e64a97d93d1682f1f1cbc0be276cdb45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Edstr=C3=B6m?= Date: Fri, 31 Jan 2020 02:28:31 +0900 Subject: [PATCH] Install compile dependency dialog if missing --- compile.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compile.sh b/compile.sh index 6257109db..b8e6f9661 100755 --- a/compile.sh +++ b/compile.sh @@ -84,6 +84,12 @@ fi rm $TMPFILE +# Check for required packages for compiling +if [[ -z "$(which dialog)" ]]; then + sudo apt update + sudo apt install -y dialog +fi + # Check for Vagrant if [[ "$1" == vagrant && -z "$(which vagrant)" ]]; then display_alert "Vagrant not installed." "Installing"