From f63115633c6fb8d323dfe2d582ec3d43d559805e Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 8 Apr 2015 19:45:51 -0700 Subject: [PATCH] grab.sh: Adjust sed expression to also remove sizes from latest lines Recently the latest file gained a second byte-size column, with entries like: 20150402/stage3-amd64-20150402.tar.bz2 215954519 This commit relaxes the sed expression to match these new lines too. --- grab.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grab.sh b/grab.sh index 2fa636c..9a5cafd 100755 --- a/grab.sh +++ b/grab.sh @@ -27,7 +27,7 @@ MIRROR="${MIRROR:-http://distfiles.gentoo.org/}" BASE_ARCH_URL="${BASE_ARCH_URL:-${MIRROR}releases/amd64/autobuilds/}" LATEST=$(wget -O - "${BASE_ARCH_URL}latest-stage3.txt") -DATE=$(echo "${LATEST}" | sed -n 's|/stage3-amd64-[0-9]*[.]tar[.]bz2||p') +DATE=$(echo "${LATEST}" | sed -n 's|/stage3-amd64-[0-9]*[.]tar[.]bz2.*||p') ARCH_URL="${ARCH_URL:-${BASE_ARCH_URL}${DATE}/}" STAGE3="${STAGE3:-stage3-amd64-${DATE}.tar.bz2}" STAGE3_CONTENTS="${STAGE3_CONTENTS:-${STAGE3}.CONTENTS}" -- 2.26.2