refactor: use brace expansion in DOWNLOADLINKS

This commit is contained in:
boypt
2026-07-29 09:19:46 +08:00
parent 7cf48f945b
commit 0bee1565b4

View File

@@ -18,13 +18,11 @@ arg1="${1:-}"
source $__dir/version.env
DOWNLOADLINKS=( \
$DEBMIRROR/pool/main/o/openssh/openssh_${OPENSSH_SIDPKG}.debian.tar.xz \
$DEBMIRROR/pool/main/o/openssh/openssh_${OPENSSH_SIDPKG}.dsc \
$DEBMIRROR/pool/main/o/openssh/openssh_${OPENSSHVER}.orig.tar.gz \
$DEBMIRROR/pool/main/o/openssh/openssh_${OPENSSHVER}.orig.tar.gz.asc \
${OPENSSLMIR}/${OPENSSLSRC}
)
DOWNLOADLINKS=(
$DEBMIRROR/pool/main/o/openssh/openssh_${OPENSSH_SIDPKG}.{debian.tar.xz,dsc}
$DEBMIRROR/pool/main/o/openssh/openssh_${OPENSSHVER}.orig.tar.gz{,.asc}
${OPENSSLMIR}/${OPENSSLSRC}
)
mkdir -p $__dir/downloads && cd $__dir/downloads
echo "> INFO: downloading the following sources."