Skip to content

Commit 9e486a3

Browse files
simplify capturing of the subshell exit status
1 parent 3b4208d commit 9e486a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ runs:
1515
for dir in $(find . \( -name vendor -o -name '[._].*' -o -name node_modules \) -prune -o -name go.mod -print | sed 's:/go.mod$::'); do
1616
echo "#=#=#=# $dir #=#=#=#"
1717
pushd $dir > /dev/null
18-
s=0
1918
(
2019
${{ inputs.run }}
21-
) || s=$?
20+
)
21+
s=$?
2222
if [[ $s != 0 ]]; then status=$s; fi
2323
popd > /dev/null
2424
echo -e "\n\n"

0 commit comments

Comments
 (0)