Skip to content

Commit 2c4196f

Browse files
committed
Improve hook
1 parent 4adabf4 commit 2c4196f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@
5959
"composer test",
6060
"appver=$(grep -o -E '[0-9]+\\.[0-9]+\\.[0-9]+(-alpha\\.[0-9]+)?' cghooks)",
6161
"tag=$(git tag | tail -n 1)",
62-
"if [ \"$tag\" != \"v$appver\" ]; then",
63-
"echo \"The most recent tag $tag does not match the application version $appver\\n\"",
6462
"tag=${tag#v}",
63+
"if [ \"$tag\" != \"$appver\" ]; then",
64+
"echo \"The most recent tag $tag does not match the application version $appver\\n\"",
6565
"sed -i -E \"s/$appver/$tag/\" cghooks",
6666
"exit 1",
6767
"fi"

0 commit comments

Comments
 (0)