From 612cac12ed5efec575b30864770b76b933fe4e86 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sun, 12 Feb 2023 00:41:23 +0100 Subject: build: debian: fix sed calls --- build-aux/build-debian.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build-aux') diff --git a/build-aux/build-debian.sh b/build-aux/build-debian.sh index 710c6a4..67731e8 100755 --- a/build-aux/build-debian.sh +++ b/build-aux/build-debian.sh @@ -36,8 +36,8 @@ esac download_pbuilder_chroot() { local index="$(wget -q -O- https://distfiles.rgm.io/pbuilder-chroots/LATEST/)" - local archive="$(echo "${index}" | sed -n "s/.*\(pbuilder-chroot-${DIST}-${ARCH}-.*\)\.sha512.*/\1/p")" - local p="$(echo "${index}" | sed -n "s/.*pbuilder-chroot-${DIST}-${ARCH}-\(.*\)\.tar.*\.sha512.*/pbuilder-chroots-\1/p")" + local archive="$(echo "${index}" | sed -n "s/.*\(pbuilder-chroot-${DIST}-${ARCH}-.*\)\.sha512.*/\1/p" | head -n 1)" + local p="$(echo "${index}" | sed -n "s/.*pbuilder-chroot-${DIST}-${ARCH}-\(.*\)\.tar.*\.sha512.*/pbuilder-chroots-\1/p" | head -n 1)" pushd "${SRCDIR}" > /dev/null -- cgit v1.2.3-18-g5258