Skip to content
Snippets Groups Projects
Commit 26766bf9 authored by Natanael Copa's avatar Natanael Copa
Browse files

scripts/mkimage: fix generation of checksums

we need remove the leading path to file
parent 752bd101
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment