From 87db04b5714ccb37ec5c6f4b7fbdb5f0e46d9b03 Mon Sep 17 00:00:00 2001 From: MightyCoderX <36588044+MightyCoderX@users.noreply.github.com> Date: Mon, 22 Jun 2026 17:00:13 +0200 Subject: [PATCH] perf(quickget): call web_pipe once then use read builtin to split words --- quickget | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/quickget b/quickget index 54b26f9..5397d00 100755 --- a/quickget +++ b/quickget @@ -2228,8 +2228,10 @@ function get_kdeneon() { local HASH="" local ISO="" local URL="https://files.kde.org/neon/images/${EDITION}/${RELEASE}/current" - ISO=$(web_pipe "${URL}/neon-${RELEASE}-${EDITION}-current.sha256sum" | cut -d' ' -f3-) - HASH=$(web_pipe "${URL}/neon-${RELEASE}-${EDITION}-current.sha256sum" | cut -d' ' -f1) + + local CHKSUM_FILE_CONTENT=$(web_pipe "${URL}/neon-${RELEASE}-${EDITION}-current.sha256sum") + IFS=' ' read -r HASH ISO <<< "$CHKSUM_FILE_CONTENT" + echo "${URL}/${ISO} ${HASH}" }