Skip to content

Commit df529b1

Browse files
authored
Update Xbuild4Windows.yml
1 parent f6fafcd commit df529b1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/Xbuild4Windows.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,25 +101,23 @@ jobs:
101101
- name: "🔧 Apply Windows Portability Patches"
102102
run: |
103103
function b() {
104-
echo "Entering b()"
105104
bak=$(find . -type f -name '*.bak' | head -n 1)
106-
printf "bak=%s\n" "${bak}"
107105
test -z "${bak}" && return
108106
src=${bak/.bak/}
109-
printf "src=%s\n" "${src}"
110107
n=1
111108
while : ; do
112109
patch=${src}-${n}.patch
113-
printf "patch=%s\n" "${patch}"
114110
test -f "${patch}" || break
115111
((n++))
116112
done
117-
echo Executing diff -u -w "${bak}" "${src}"
118113
diff -u -w "${bak}" "${src}" >"${patch}" || true
119114
rm -f "${bak}" || true
115+
if [[ ! -s "${patch}" ]]; then
116+
rm -f "${patch}" || true
117+
return 0
118+
fi
120119
echo "${patch}":
121120
cat "${patch}"
122-
echo "Leaving b()"
123121
return 0
124122
}
125123
cd nano

0 commit comments

Comments
 (0)