Install compile dependency dialog if missing

This commit is contained in:
Robert Edström
2020-01-31 02:28:31 +09:00
parent 909be0239d
commit fbee8be1e6

View File

@@ -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"