File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments