From 9c84e01d29c8c823e1e40d5b62bd8a117aef7d75 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Thu, 18 Jul 2024 17:25:53 -0500 Subject: [PATCH] fix lindev.sh --- startdev.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/startdev.sh b/startdev.sh index 5750b2ee..96293a7b 100755 --- a/startdev.sh +++ b/startdev.sh @@ -5,8 +5,7 @@ RED='\033[0;31m' # Function to fetch the latest release tag from the GitHub API get_latest_release() { - local latest_release - latest_release=$(curl -s https://api.github.com/repos/ChrisTitusTech/linutil/releases | jq -r 'map(select(.prerelease == true)) | .tag_name') + latest_release=$(curl -s https://api.github.com/repos/ChrisTitusTech/linutil/releases | jq -r 'map(select(.prerelease == true)) | .[0].tag_name') if [ -z "$latest_release" ]; then echo "Error fetching release data" >&2 return 1