fix(quickget): resolve some shellcheck SC2086 notices

https://www.shellcheck.net/wiki/SC2086
This commit is contained in:
Martin Wimpress 2024-05-07 13:50:15 +01:00 committed by Martin Wimpress
parent fe2dc839ed
commit 4ebb74a993
1 changed files with 3 additions and 1 deletions

View File

@ -711,6 +711,7 @@ function releases_debian() {
local OLD=""
NEW=$(web_pipe "https://cdimage.debian.org/debian-cd/" | grep '\.[0-9]/' | cut -d'>' -f 9 | cut -d'/' -f 1)
OLD=$(web_pipe "https://cdimage.debian.org/cdimage/archive/" | grep -e '>[1-9][0-9]\.' | grep -v 'live' | grep -v NEVER | cut -d'>' -f 9 | cut -d'/' -f 1 | tac | head -20)
#shellcheck disable=SC2086
echo ${NEW} ${OLD}
}
@ -1534,7 +1535,7 @@ EOF
fi
fi
echo -e "\nTo start your $(pretty_name "${OS}") virtual machine run:"
if [ ${OS} == "slint" ]; then
if [ "${OS}" == "slint" ]; then
echo -e " quickemu --vm ${CONF_FILE}\nTo start Slint with braille support run:\n quickemu --vm --braille --display sdl ${CONF_FILE}"
else
echo " quickemu --vm ${CONF_FILE}"
@ -1862,6 +1863,7 @@ function get_fedora() {
Server|Kinoite|Onyx|Silverblue|Sericea|Workstation) VARIANT="${EDITION}";;
*) VARIANT="Spins";;
esac
#shellcheck disable=SC2086
JSON=$(web_pipe "https://getfedora.org/releases.json" | jq '.[] | select(.variant=="'${VARIANT}'" and .subvariant=="'"${EDITION}"'" and .arch=="x86_64" and .version=="'"${RELEASE}"'")')
URL=$(echo "${JSON}" | jq -r '.link' | head -n1)
HASH=$(echo "${JSON}" | jq -r '.sha256' | head -n1)