I try to figure out why the command below doesn't work because on one UDM-Pro it worked perfectly.
dl_url=$(curl -fsL "https://api.github.com/repos/boostchicken-dev/udm-utilities/releases/latest" | awk '$0 ~ /"browser_download_url"/ {sub(/.*:\s*"/,"",$0); gsub("\"", "", $0); print $2}')
curl -Lo udm-boot_latest.deb $dl_url
The output is the following:
unifi-os shell
root@ubnt:/# dl_url=$(curl -fsL "https://api.github.com/repos/boostchicken-dev/udm-utilities/releases/latest" | awk '$0 ~ /"browser_download_url"/ {sub(/.:\s"/,"",$0); gsub(""", "", $0); print $2}')
root@ubnt:/# curl -Lo udm-boot_latest.deb $dl_url
curl: no URL specified! curl: try 'curl --help' or 'curl --manual' for more information
root@ubnt:/#
What is wrong with this command? On another UDM-Pro it worked perfectly.
Thx a lot! :)
I don't know what I can change?