Skip to content

Commit b2e77b9

Browse files
committed
functions: PR patchesL fix empty line
Signed-off-by: Eliminater74 <eliminater74@gmail.com>
1 parent f13a44c commit b2e77b9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scripts/functions.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ APPLY_PR_PATCHES() {
257257
echo "This is WORKING Here:"
258258
file="$GITHUB_WORKSPACE"/scripts/data/PR_patches.txt
259259
while read -r line; do
260+
if [ "$line" = "" ]; then continue
261+
fi
260262
cd "$GITHUB_WORKSPACE"/openwrt && wget https://patch-diff.githubusercontent.com/raw/openwrt/openwrt/pull/"$line".patch
261263
echo "Applying $line.patch"
262264
git am "$line".patch || error_return "Patch Failed, Aborting Patch"
@@ -268,6 +270,8 @@ APPLY_PR_PATCHES_PACKAGES() {
268270
echo "This is WORKING Here:"
269271
file="$GITHUB_WORKSPACE"/scripts/data/PR_patches_packages.txt
270272
while read -r line; do
273+
if [ "$line" = "" ]; then continue
274+
fi
271275
cd "$GITHUB_WORKSPACE"/openwrt/feeds/packages && wget https://patch-diff.githubusercontent.com/raw/openwrt/packages/pull/"$line".patch
272276
echo "Applying $line.patch"
273277
git am "$line".patch || error_return "Patch Failed, Aborting Patch"

0 commit comments

Comments
 (0)