mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-27 01:16:36 +00:00
Remove a raw value
For now, `file_ext` has the same value as, `CHECKSUM_ALGORITHM`, but I used another variable to make changing it easier.
This commit is contained in:
parent
624406eb27
commit
a6fea90720
@ -227,15 +227,16 @@ RUN set -eu ; \
|
||||
unset -v arg1 ; \
|
||||
} ; \
|
||||
\
|
||||
file_ext="${CHECKSUM_ALGORITHM}" ; \
|
||||
apk --no-cache --no-progress add "cmd:${CHECKSUM_ALGORITHM}sum" ; \
|
||||
mkdir -v /verified ; \
|
||||
cd /downloaded ; \
|
||||
for f in *.sha256 ; \
|
||||
for f in *."${file_ext}" ; \
|
||||
do \
|
||||
"${CHECKSUM_ALGORITHM}sum" --check --warn --strict "${f}" || exit ; \
|
||||
ln -v "${f%.sha256}" /verified/ || exit ; \
|
||||
ln -v "${f%.${file_ext}}" /verified/ || exit ; \
|
||||
done ; \
|
||||
unset -v f ; \
|
||||
unset -v f file_ext ; \
|
||||
\
|
||||
S6_ARCH="$(decide_arch "${TARGETARCH}")" ; \
|
||||
set -x ; \
|
||||
|
Loading…
Reference in New Issue
Block a user