Skip to content

Commit

Permalink
Use Perl for Ruby version script
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmior committed Sep 4, 2024
1 parent be21eac commit 92d74a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion implementations/json_schemer/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -o errexit
set -o nounset

# Extract the version of the package (json_schemer) from Gemfile.lock
json_schemer_version=$(grep -Po '(?<=json_schemer \().*(?=\))' implementations/json_schemer/Gemfile.lock)
json_schemer_version=$(perl -nle'print $& while m{(?<=json_schemer \().*(?=\))}g' implementations/json_schemer/Gemfile.lock)

# Output the version
echo "$json_schemer_version"

0 comments on commit 92d74a5

Please sign in to comment.