snow-fort-guix-channel/ensure-hashes

15 lines
226 B
Plaintext
Raw Normal View History

#!/usr/bin/env sh
2024-10-06 09:33:19 -04:00
TMPDIR=${1}
cd ${TMPDIR} || exit 1
while read p; do
filename=$(basename $p)
if [ ! -f ${filename}.hash ]
then
wget ${p}
guix hash ${filename} > ${filename}.hash
fi
done <$2