Skip to content

Commit

Permalink
Minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Nov 1, 2019
1 parent a0a252b commit 13cedad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ post-push-hook-tags = $(if $(call eq,$(tags),),$(TAGS),$(tags))

post-push-hook:
@mkdir -p hooks/
docker run --rm -i -v "$(PWD)/post_push.tmpl.php":/post_push.php:ro \
docker run --rm -v "$(PWD)/post_push.tmpl.php":/post_push.php:ro \
php:alpine php -f /post_push.php -- \
--image_tags='$(post-push-hook-tags)' \
> $(if $(call eq,$(out),),hooks/post_push,$(out))
Expand Down
6 changes: 3 additions & 3 deletions test/suite.bats
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@


@test "post_push hook is up-to-date" {
run sh -c "make post-push-hook out=/dev/stdout | grep 'for tag in' \
| cut -d '{' -f 2 \
| cut -d '}' -f 1"
run sh -c "make post-push-hook out=/dev/stdout | grep 'for tag in' \
| cut -d '{' -f 2 \
| cut -d '}' -f 1"
[ "$status" -eq 0 ]
[ ! "$output" = '' ]
expected="$output"
Expand Down

0 comments on commit 13cedad

Please sign in to comment.