aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2023-02-12 00:41:23 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2023-02-12 00:41:23 +0100
commit612cac12ed5efec575b30864770b76b933fe4e86 (patch)
tree87346765b5e3c7a68fa3da50155ff14036aff782 /build-aux
parent3f6ae823cd8ff8049abeca2be495c727563c919e (diff)
downloadblogc-612cac12ed5efec575b30864770b76b933fe4e86.tar.gz
blogc-612cac12ed5efec575b30864770b76b933fe4e86.tar.bz2
blogc-612cac12ed5efec575b30864770b76b933fe4e86.zip
build: debian: fix sed calls
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/build-debian.sh4
1 files changed, 2 insertions, 2 deletions
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