summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpatch-fix-offsets4
1 files changed, 4 insertions, 0 deletions
diff --git a/patch-fix-offsets b/patch-fix-offsets
index bd453b0..f1cc0be 100755
--- a/patch-fix-offsets
+++ b/patch-fix-offsets
@@ -30,6 +30,10 @@ patch_figure_expr() {
perfile_expr=${perfile_expr:+${perfile_expr}:}
perfile_expr+="${hunk}/${offset}"
;;
+ can\'t\ find\ file\ to\ patch\ at\ input\ line\ *)
+ echo "Forgot to specify -p option?"
+ exit 1
+ ;;
esac
done < <(patch -o- "$@" 2>&1 >/dev/null; echo '@@EOF@@')
echo "${final_expr}"