Commit 26766bf9 authored by Natanael Copa's avatar Natanael Copa

scripts/mkimage: fix generation of checksums

we need remove the leading path to file
parent 752bd101
......@@ -66,7 +66,7 @@ EOF
# generate checksums if missing
for hash in ${checksums}; do
if ! [ -f "$image.$hash" ]; then
${hash}sum $image > $image.$hash
${hash}sum $image | sed 's: .*/: :' > $image.$hash
fi
echo " $hash: $(cut -d' ' -f1 $image.$hash)"
done
......
......@@ -177,7 +177,7 @@ build_profile() {
if [ "$_checksum" = "yes" ]; then
for _c in $all_checksums; do
${_c}sum "$output_file" > "${output_file}.${_c}"
echo "$(${_c}sum "$output_file" | cut -d' ' -f1) ${output_filename}" > "${output_file}.${_c}"
done
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment