base-files/base-files-not-yet/debian/check-md5sum-etc
Ward from fusion-voyager-3 c599011a8e
Some checks failed
PikaOS Package Build & Release (Canary) (amd64-v3) / build (push) Failing after 5s
port to PikaOS 4
2024-07-24 16:41:05 +03:00

9 lines
223 B
Bash

#!/bin/sh
file=$1
md5=$(md5sum share/${file} | cut -f 1 -d " ")
if ! grep -q "$md5" share/${file}.md5sums; then
echo Error: share/${file}.md5sums is incomplete.
echo Need to add "$md5" with current version.
exit 1
fi