Check and Install unzip
This commit is contained in:
parent
5428f052d9
commit
3cf230fd56
@ -108,6 +108,15 @@ wget -q --show-progress $URL
|
||||
echo -en "\e[1A\e[0K" #Overwrite output from wget
|
||||
FILE=$(basename $URL)
|
||||
|
||||
# Check for and Install unzip (if needed)
|
||||
if [[ $FILE == *.zip ]]; then
|
||||
msg "Checking for unzip command"
|
||||
if ! command -v unzip &> /dev/null; then
|
||||
msg "unzip not found, installing..."
|
||||
apt install unzip -y
|
||||
fi
|
||||
fi
|
||||
|
||||
# Extract Home Assistant disk image
|
||||
msg "Extracting disk image..."
|
||||
case $FILE in
|
||||
|
Loading…
Reference in New Issue
Block a user