scripts/download.pl: fix support for aria2c download tool on macos fix-mirror
authorChristian Marangi <ansuelsmth@gmail.com>
Mon, 26 Sep 2022 18:48:25 +0000 (20:48 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Mon, 26 Sep 2022 18:50:10 +0000 (20:50 +0200)
commitf1b3958d02ba8b8a8bf2182599653ddd553906a8
treea122389c63971ae22f0014f19f5398c1a2983615
parent5df60f5c24e40fc373178427a6b654826edbe885
scripts/download.pl: fix support for aria2c download tool on macos

Currently we use /dev/shm to place aria2c tmp file. This is not present
on macos. Use the openwrt tmp directory instead of the linux-only
/dev/shm to save compatibility with more os.

Fixes: d39123626931 ("download.pl: add aria2c support")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
scripts/download.pl