updater: Add check for unzip installed

This commit is contained in:
remittor
2025-12-19 11:12:27 +03:00
parent c8558cf6c1
commit aaef886826

View File

@@ -363,6 +363,10 @@ if [ "$opt_update" != "" ]; then
echo "ERROR: downloaded package is incorrect! (size = $ZAP_PKG_SZ)"
return 216
fi
if ! command -v unzip >/dev/null 2>&1; then
echo "ERROR: package \"upzip\" not installed!"
return 218
fi
unzip -q "$ZAP_PKG_FN" -d $ZAP_PKG_DIR
rm -f "$ZAP_PKG_FN"
if [ "$PKG_MGR" = "apk" ]; then