From d851acc7e98a093fdffab26095013dd8c8c6c6e9 Mon Sep 17 00:00:00 2001 From: Ethan Hindmarsh Loves Veilid Date: Sun, 2 Jun 2024 13:50:47 -0500 Subject: [PATCH] grep -> awk (version_bump.sh) --- version_bump.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version_bump.sh b/version_bump.sh index 85f9196..5ada2c3 100755 --- a/version_bump.sh +++ b/version_bump.sh @@ -28,7 +28,7 @@ increment_buildcode() { # Function to get the current version from pubspec.yaml get_current_version() { - grep -oP '(?<=version: ).*' pubspec.yaml + awk '/^version: / { print $2 }' pubspec.yaml } # Function to update the version in pubspec.yaml