From ba8a3ef6524e9dc6267a036ee33a9fcd01571d13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 27 Jul 2021 17:54:28 +0200 Subject: pkgpatchex: Exit if patch fails --- bin/pkgpatchex | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/pkgpatchex b/bin/pkgpatchex index c475a4b..0c94b8f 100755 --- a/bin/pkgpatchex +++ b/bin/pkgpatchex @@ -1,7 +1,13 @@ -#!/bin/sh +#!/bin/sh -ef -# pkgpatchall -- apply all patches +# pkgpatchex -- apply all patches -ls "$(whereispatch -i)"/patch-* | while read -r patch; do - pkgpatch <"$patch" +IFS=' +' + +for patch in $(find $(whereispatch -i) -name 'patch-*' -type f); do + echo "${0##*/}: applying $(basename $patch)" + pkgpatch <$patch done + +pkgclear 2>/dev/null || true -- cgit v1.2.3