We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7027c20 commit ec0ae9bCopy full SHA for ec0ae9b
1 file changed
tests/docker/local-image.yml
@@ -154,13 +154,12 @@ commandTests:
154
echo "identity override" > /tmp/ws/e2e-identity.txt
155
real_git="$(command -v git)"
156
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
+ printf '%s\n' \
+ '#!/bin/sh' \
+ 'if [ "$1" = "push" ]; then' \
+ ' exit 0' \
+ 'fi' \
+ "exec ${real_git} \"\$@\"" > /tmp/fakebin/git
164
chmod +x /tmp/fakebin/git
165
export PATH="/tmp/fakebin:${PATH}"
166
export GITHUB_WORKSPACE=/tmp/ws
0 commit comments