neb/tools/repo/check.d/40-skel-sum.sh

12 lines
No EOL
237 B
Bash
Executable file

#!/bin/bash
if ! [ -f "skel/etc/ixvd/skel-sum.txt" ]; then
echo "no skel sum!"
exit 1
fi
sum=$(find skel | sha256sum)
if ! [ "$(cat skel/etc/ixvd/skel-sum.txt)" = "$sum" ]; then
echo "skel sum does not match!"
exit 1
fi