Skip to content

Commit 8aa6c03

Browse files
committed
Fix git diff script
1 parent 49b5d12 commit 8aa6c03

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

scripts/git-has-changes.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env sh
22

3-
if [[ -n $(git status --porcelain --untracked-files=no) ]]; then
3+
if [ -n "$(git status --porcelain --untracked-files=no)" ]; then
44
exit 1
55
fi
Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,9 @@ for i in ./build/*/; do
3232
docker run \
3333
--volume ./scripts/test-xdebug-install.php:/app/test-xdebug-install.php \
3434
--workdir /app \
35-
$image
35+
--entrypoint php \
36+
"${image}" test-xdebug-install.php
3637

37-
38-
# Builds image and check for return code
39-
if docker build --pull -t "${image}" "./build/${version}"; then
40-
build_done+=( "${image}" )
41-
else
42-
echo "${text_bold}${text_red}* ERROR when building ${image} ${text_normal}"
43-
build_failed+=( "${image}" )
44-
fi
38+
exit 0
4539
done
4640

0 commit comments

Comments
 (0)