Skip to content

Commit fcbddc0

Browse files
committed
Fix: use posix sh in workflow
1 parent d897117 commit fcbddc0

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/reusable_cross_repos_build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ jobs:
6363
});
6464
fetched_prs.push({owner: owner, repo: repo, pr_num: pr_num, sha: pullRequest.head.sha});
6565
}));
66-
6766
// Download diffs.
6867
await Promise.all(patchUrls.map(async ({ repo, url }) => {
6968
console.log(`Downloading ${url}`);
@@ -87,13 +86,13 @@ jobs:
8786
for patch in patches/*.diff; do
8887
patch_abspath=$(realpath ${patch})
8988
repo=$(basename ${patch} ".diff")
90-
if [[ ${repo} != "manifests" ]];then
89+
if [ "${repo}" != "manifests" ]; then
9190
cd ${repo}
9291
else
9392
cd .repo/${repo}
9493
fi
9594
git apply -3 --check --verbose ${patch_abspath} && git apply -3 --verbose ${patch_abspath}
96-
if [[ $? != 0 ]]; then
95+
if [ $? != 0 ]; then
9796
exit 1
9897
fi
9998
cd - > /dev/null

0 commit comments

Comments
 (0)