From 65b5140de569d5071c0f9f6f8a1eba79c381121f Mon Sep 17 00:00:00 2001 From: phoebos Date: Tue, 1 Nov 2022 10:12:52 +0100 Subject: [PATCH] kiss: correct use of $@ if KISS_GET=aria2c (#107) d47508c0 shifted some args down without updating the use of $2 and $3 later on. Co-authored-by: phoebos Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/107 Co-authored-by: phoebos Co-committed-by: phoebos --- kiss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kiss b/kiss index e3a85c4..7bdc336 100755 --- a/kiss +++ b/kiss @@ -477,6 +477,7 @@ pkg_source_url() { # Download to a temporary file and only move it to the destination if # everything completed successfully, to avoid leaving incomplete downloads # in the cache if it is interrupted. + download_source=$2 download_dest=$1 tmp_file "${1##*/}" download shift @@ -493,8 +494,8 @@ pkg_source_url() { esac "$cmd_get" "$@" || { - rm -f "$2" - die "$repo_name" "Failed to download $3" + rm -f "$_tmp_file" + die "$repo_name" "Failed to download $download_source" } mv "$_tmp_file" "$download_dest"