aboutsummaryrefslogtreecommitdiffstats
path: root/utils/patch.awk
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-11-16 11:09:40 +0800
committerGitHub <noreply@github.com>2024-11-16 11:09:40 +0800
commit86aa9106090a0219bac30bc12f5a5bd91949afd9 (patch)
tree69aef8c03242c67480c4edfe42a2cbf4c785b466 /utils/patch.awk
parent6d30c22b82a5ac1a5775d8137c3b08a581770273 (diff)
downloadllm-functions-docker-86aa9106090a0219bac30bc12f5a5bd91949afd9.tar.gz
refactor: improve bash code (#125)
* refactor: extract guard_path to utils/guard_path.sh * add utils/guard_operation.sh
Diffstat (limited to 'utils/patch.awk')
-rwxr-xr-xutils/patch.awk4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/patch.awk b/utils/patch.awk
index b625d37..b651fb2 100755
--- a/utils/patch.awk
+++ b/utils/patch.awk
@@ -55,7 +55,7 @@ END {
}
if (hunkIndex == 0) {
- print "No patch" > "/dev/stderr"
+ print "error: no patch" > "/dev/stderr"
exit 1
}
@@ -90,7 +90,7 @@ END {
}
if (hunkIndex != totalHunks + 1) {
- print "Failed to patch the file" > "/dev/stderr"
+ print "error: unable to apply patch" > "/dev/stderr"
exit 1
}
}