diff --git a/get-stage3.sh b/get-stage3.sh index 0a0d0acea..dfd68166a 100755 --- a/get-stage3.sh +++ b/get-stage3.sh @@ -40,7 +40,7 @@ for FILE in "${STAGE3}" "${STAGE3_CONTENTS}" "${STAGE3_DIGESTS}"; do fi fi - CURRENT="${FILE/${DATE}/current}" + CURRENT=$(echo "${FILE}" | sed "s/${DATE}/current/") ( cd downloads && rm -f "${CURRENT}" &&