Skip to content

Commit

Permalink
here-strings is invalid on posix shell
Browse files Browse the repository at this point in the history
  • Loading branch information
pexcn committed Mar 3, 2024
1 parent 53ed359 commit aa36f87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# shellcheck disable=SC2086,SC3043,SC2164,SC2103,SC2046,SC3011,SC2155
# shellcheck disable=SC2086,SC3043,SC2164,SC2103,SC2046,SC2155

get_sources() {
git clone $BUILD_REPO --single-branch -b $GITHUB_REF_NAME openwrt
Expand All @@ -18,7 +18,7 @@ apply_patches() {

dirname $(find patches -type f -name "*.patch") | sort -u | while read -r dir; do
local patch_dir="$(realpath $dir)"
cd "$(sed 's|^patches/|openwrt/|' <<<$dir)"
cd "$(echo $dir | sed 's|^patches/|openwrt/|')"
find $patch_dir -type f -name "*.patch" | while read -r patch; do
git am $patch
done
Expand Down
2 changes: 1 addition & 1 deletion patches

0 comments on commit aa36f87

Please sign in to comment.