scripts/download.pl: fix broken link for KERNEL projects
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 19 Jun 2024 12:30:06 +0000 (14:30 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Wed, 19 Jun 2024 12:30:06 +0000 (14:30 +0200)
commit3b83d393ddcd09e9ceb6ce04559d8f4a697f817f
tree52264bfe005502ddb39d64961e0d4718b3445258
parent156f5e8f48adf12201849ad33d2b85e3d5a90ae7
scripts/download.pl: fix broken link for KERNEL projects

Fix broken link generation for KERNEL projects.

Using $1 in projectsmirrors sub was still referencing the caller $1
instead of the remaining args of projectsmirrors sub.

Use shift and put the second arg of projectsmirrors sub in $append to
correctly handle the sub args.

Fixes: 465cf358881c ("scripts/download.pl: detach mirror URLs from script file")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
scripts/download.pl