From 33cca33ca2834ba78df179d44145c6146bdc4346 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 5 Jun 2020 12:41:36 +0200 Subject: pin-dependencies.PKGBUILDpatch: ignore empty lines --- pin-dependencies.PKGBUILDpatch | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'pin-dependencies.PKGBUILDpatch') diff --git a/pin-dependencies.PKGBUILDpatch b/pin-dependencies.PKGBUILDpatch index 9926eea1b..a3ae3b53e 100644 --- a/pin-dependencies.PKGBUILDpatch +++ b/pin-dependencies.PKGBUILDpatch @@ -59,11 +59,17 @@ if printf '%s\n' "${arch[@]}" | grep -qvxF any; then printf '%s\n' "${_pkg}" fi done \ - | sed 's/[<>]\?=.*$//' \ + | sed ' + s/[<>]\?=.*$// + /^$/d + ' \ | sort -u ) <( eval 'printf '"'"'%s\n'"'"' "${_pinned_dependencies[@]}" "${_pinned_dependencies_'"${CARCH}"'[@]}"' \ - | sed 's/[<>]\?=.*$//' \ + | sed ' + s/[<>]\?=.*$// + /^$/d + ' \ | sort -u ) ); then -- cgit v1.2.3-70-g09d2