From a10c1edb8e69c6fa4d9dad4129777f92d1c64763 Mon Sep 17 00:00:00 2001 From: Jeevitha Kannan K S Date: Tue, 10 Dec 2024 19:26:39 +0530 Subject: [PATCH] Fix grep error in alpine linux --- startdev.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/startdev.sh b/startdev.sh index 8e27bbf09..7e6b0bb20 100755 --- a/startdev.sh +++ b/startdev.sh @@ -8,8 +8,9 @@ RED='\033[0;31m' # Function to fetch the latest release tag from the GitHub API get_latest_release() { latest_release=$(curl -s https://api.github.com/repos/ChrisTitusTech/linutil/releases | - grep -oP '"tag_name": "\K[^"]*' | - head -n 1) + grep "tag_name" | + head -n 1 | + sed -E 's/.*"tag_name": "([^"]+)".*/\1/') if [ -z "$latest_release" ]; then printf "%b\n" "Error fetching release data" >&2 return 1