check for wget

This commit is contained in:
tteckster 2022-12-15 11:24:37 -05:00 committed by GitHub
parent ef8238332a
commit 7a788da1de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -239,6 +239,7 @@ fi
msg_ok "Using ${CL}${BL}$STORAGE${CL} ${GN}for Storage Location." msg_ok "Using ${CL}${BL}$STORAGE${CL} ${GN}for Storage Location."
msg_ok "Virtual Machine ID is ${CL}${BL}$VMID${CL}." msg_ok "Virtual Machine ID is ${CL}${BL}$VMID${CL}."
msg_info "Getting URL for Home Assistant ${BRANCH} Disk Image" msg_info "Getting URL for Home Assistant ${BRANCH} Disk Image"
if ! command -v wget >/dev/null 2>&1; then apt-get install -y wget &>/dev/null; fi
if [ "$BRANCH" == "$DEV" ]; then if [ "$BRANCH" == "$DEV" ]; then
URL=https://os-builds.home-assistant.io/${BRANCH}/haos_ova-${BRANCH}.qcow2.xz URL=https://os-builds.home-assistant.io/${BRANCH}/haos_ova-${BRANCH}.qcow2.xz
else else