mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2025-12-31 21:59:06 +03:00
updater: Add check for unzip installed
This commit is contained in:
@@ -363,6 +363,10 @@ if [ "$opt_update" != "" ]; then
|
|||||||
echo "ERROR: downloaded package is incorrect! (size = $ZAP_PKG_SZ)"
|
echo "ERROR: downloaded package is incorrect! (size = $ZAP_PKG_SZ)"
|
||||||
return 216
|
return 216
|
||||||
fi
|
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
|
unzip -q "$ZAP_PKG_FN" -d $ZAP_PKG_DIR
|
||||||
rm -f "$ZAP_PKG_FN"
|
rm -f "$ZAP_PKG_FN"
|
||||||
if [ "$PKG_MGR" = "apk" ]; then
|
if [ "$PKG_MGR" = "apk" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user