From: W. Trevor King Date: Thu, 9 Apr 2015 02:45:51 +0000 (-0700) Subject: grab.sh: Adjust sed expression to also remove sizes from latest lines X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f63115633c6fb8d323dfe2d582ec3d43d559805e;p=dockerfile.git 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. --- 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}"