snow-fort-guix-channel/ensure-hashes.sh

15 lines
218 B
Bash
Raw Normal View History

2024-10-06 09:33:19 -04:00
#!/bin/sh
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