Skip to content

Commit ebac227

Browse files
committed
patching the patch
1 parent 3a1ddb3 commit ebac227

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,11 @@ jobs:
121121

122122
- name: 'HACK: patch rustc_arch.sh script (within docker)'
123123
run: |
124-
arch=$(rustc -vV | sed -e 's/host: \(.*\)$/\1/')
124+
arch=$(rustc -vV | sed -n -e 's/host: \(.*\)$/\1/p')
125125
docker exec --user user mir-smir-ci-${GITHUB_SHA} \
126-
bash -c "echo 'echo $arch' > deps/smir_pretty/rustc_arch.sh"
126+
bash -c "printf '#!/bin/sh\necho \"$arch\"\n' > deps/smir_pretty/rustc_arch.sh"
127+
docker exec --user user mir-smir-ci-${GITHUB_SHA} \
128+
cat deps/smir_pretty/rustc_arch.sh
127129
docker exec --user user mir-smir-ci-${GITHUB_SHA} \
128130
deps/smir_pretty/rustc_arch.sh
129131

0 commit comments

Comments
 (0)