istoreos/ota: fix cancel downloading task

```
    fcurl --connect-timeout 5 --progress-bar -o /tmp/firmware.img.part "$OTA_URL_BASE/$img" 2>/tmp/firmware.img.progress &
    local pid="$!"
```

if we don't use alias, the pid will point to sub shell, not curl.

on canceling, kill signal should send to curl.
This commit is contained in:
Liangbin Lian 2024-05-14 10:55:26 +08:00
parent 37ea01fa3e
commit 1bddd11e72
2 changed files with 2 additions and 4 deletions

View File

@ -3,7 +3,7 @@ include $(TOPDIR)/rules.mk
LUCI_TITLE:=LuCI for OTA upgrade
LUCI_PKGARCH:=all
PKG_VERSION:=1.3.1
PKG_VERSION:=1.3.2
PKG_RELEASE:=1
PKG_MAINTAINER:=jjm2473 <jjm2473@gmail.com>

View File

@ -19,9 +19,7 @@ sha256() {
sha256sum $1 | cut -d' ' -f1
}
fcurl() {
curl -L --fail --show-error "$@"
}
alias fcurl='curl -L --fail --show-error'
download() {
local img=$1