summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-06-05 12:41:36 +0200
committerErich Eckner <git@eckner.net>2020-06-05 12:41:36 +0200
commit33cca33ca2834ba78df179d44145c6146bdc4346 (patch)
treea41e719d4f9754ef86c25f500ab74f3e394443e0
parentb06f14cd4de0a2cf1912da2562c4a21c010010da (diff)
downloadarchlinuxewe-33cca33ca2834ba78df179d44145c6146bdc4346.tar.xz
pin-dependencies.PKGBUILDpatch: ignore empty lines
-rw-r--r--pin-dependencies.PKGBUILDpatch10
1 files changed, 8 insertions, 2 deletions
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