refactor: improve bash code (#125)
* refactor: extract guard_path to utils/guard_path.sh * add utils/guard_operation.sh
This commit is contained in:
+2
-2
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user