From d41986a95d1715376539abb544fc3011a7792e64 Mon Sep 17 00:00:00 2001 From: 4ntsy <228124712+4ntsy@users.noreply.github.com> Date: Wed, 24 Sep 2025 12:00:15 -0300 Subject: [PATCH] fix: Unnecessary jq Signed-off-by: 4ntsy <228124712+4ntsy@users.noreply.github.com> --- p3/scripts/extra/psycachy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p3/scripts/extra/psycachy.sh b/p3/scripts/extra/psycachy.sh index 814b3de9..1410f1f0 100755 --- a/p3/scripts/extra/psycachy.sh +++ b/p3/scripts/extra/psycachy.sh @@ -15,8 +15,8 @@ source "$SCRIPT_DIR/libs/linuxtoys.lib" _lang_ source "$SCRIPT_DIR/libs/lang/${langfile}.lib" # get current tags and versions -lts_tag="$(curl -s "https://api.github.com/repos/psygreg/linux-psycachy/releases" | jq -r '.[].tag_name' | grep -i '^LTS-' | sort -Vr | head -n 1)" -std_tag="$(curl -s "https://api.github.com/repos/psygreg/linux-psycachy/releases" | jq -r '.[].tag_name' | grep -i '^STD-' | sort -Vr | head -n 1)" +lts_tag="$(curl -s "https://api.github.com/repos/psygreg/linux-psycachy/releases" | grep -oP '"tag_name": "\K(.*)(?=")' | grep -i '^LTS-' | sort -Vr | head -n 1)" +std_tag="$(curl -s "https://api.github.com/repos/psygreg/linux-psycachy/releases" | grep -oP '"tag_name": "\K(.*)(?=")' | grep -i '^STD-' | sort -Vr | head -n 1)" kver_lts="$(echo "$lts_tag" | cut -d'-' -f2-)" kver_psycachy="$(echo "$std_tag" | cut -d'-' -f2-)" _kv_url_latest=$(curl -s https://www.kernel.org | grep -A 1 'id="latest_link"' | awk 'NR==2' | grep -oP 'href="\K[^"]+')