Skip to content

Commit

Permalink
Replaced jq with grep
Browse files Browse the repository at this point in the history
  • Loading branch information
adamperkowski committed Sep 20, 2024
1 parent 153a539 commit 13c37ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/tabs/applications-setup/linutil-updater.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ updateLinutil() {
fi

INSTALLED_VERSION=$(cargo install --list | grep "linutil_tui" | awk '{print $2}' | tr -d 'v:')
LATEST_VERSION=$(curl -s https://crates.io/api/v1/crates/linutil_tui | jq -r '.crate.max_version')
LATEST_VERSION=$(curl -s https://crates.io/api/v1/crates/linutil_tui | grep -oP '"max_version":\s*"\K[^"]+')

if [ "$INSTALLED_VERSION" = "$LATEST_VERSION" ]; then
printf "%b\n" "${GREEN}linutil_tui is up to date.${RC}"
Expand Down

0 comments on commit 13c37ff

Please sign in to comment.