Skip to content

Commit ec0ae9b

Browse files
fix: action-commit-push again
1 parent 7027c20 commit ec0ae9b

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

tests/docker/local-image.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,12 @@ commandTests:
154154
echo "identity override" > /tmp/ws/e2e-identity.txt
155155
real_git="$(command -v git)"
156156
mkdir -p /tmp/fakebin
157-
cat > /tmp/fakebin/git <<EOF
158-
#!/bin/sh
159-
if [ "\$1" = "push" ]; then
160-
exit 0
161-
fi
162-
exec "${real_git}" "\$@"
163-
EOF
157+
printf '%s\n' \
158+
'#!/bin/sh' \
159+
'if [ "$1" = "push" ]; then' \
160+
' exit 0' \
161+
'fi' \
162+
"exec ${real_git} \"\$@\"" > /tmp/fakebin/git
164163
chmod +x /tmp/fakebin/git
165164
export PATH="/tmp/fakebin:${PATH}"
166165
export GITHUB_WORKSPACE=/tmp/ws

0 commit comments

Comments
 (0)