Skip to content

Commit

Permalink
Improve hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofandel committed Jun 20, 2024
1 parent 4adabf4 commit 2c4196f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
"composer test",
"appver=$(grep -o -E '[0-9]+\\.[0-9]+\\.[0-9]+(-alpha\\.[0-9]+)?' cghooks)",
"tag=$(git tag | tail -n 1)",
"if [ \"$tag\" != \"v$appver\" ]; then",
"echo \"The most recent tag $tag does not match the application version $appver\\n\"",
"tag=${tag#v}",
"if [ \"$tag\" != \"$appver\" ]; then",
"echo \"The most recent tag $tag does not match the application version $appver\\n\"",
"sed -i -E \"s/$appver/$tag/\" cghooks",
"exit 1",
"fi"
Expand Down

0 comments on commit 2c4196f

Please sign in to comment.