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

15 lines
218 B
Bash

#!/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