From 34036c6b9ebeea3ed2340351bceb4d0738b998b7 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Fri, 8 Aug 2025 14:16:46 +0200 Subject: [PATCH] Fail if path command does not exist --- patches/apply.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/patches/apply.sh b/patches/apply.sh index 272a2e54..11bb2fb5 100755 --- a/patches/apply.sh +++ b/patches/apply.sh @@ -9,6 +9,11 @@ if [ -d ".git" ] ; then exec git am --committer-date-is-author-date "$@" fi +if ! type patch 2> /dev/null ; then + echo "patch command not found" >&1 + exit 1 +fi + # There is no reliable way to apply a patch and succeed if it was # already applied. Just ignore errors... for f in "$@" ; do