Files
openvino/thirdparty/fluid/check.sh
2021-06-23 09:53:18 +03:00

16 lines
293 B
Bash
Executable File

#!/usr/bin/env bash
if [ ! -f modules ] && [ ! -f checksum.txt ]; then
exit 0
fi
THIS_HASH=$(./checksum.sh)
OLD_HASH=$(cat checksum.txt)
if [ $THIS_HASH != $OLD_HASH ]; then
echo "Invalid checksum -- any changes were done to the source tree here?"
exit 1
fi
echo "Check done."