diff options
-rwxr-xr-x | scripts/mkimage-yaml.sh | 2 | ||||
-rwxr-xr-x | scripts/mkimage.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mkimage-yaml.sh b/scripts/mkimage-yaml.sh index de0161c666..95fb063f2a 100755 --- a/scripts/mkimage-yaml.sh +++ b/scripts/mkimage-yaml.sh @@ -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 diff --git a/scripts/mkimage.sh b/scripts/mkimage.sh index 023669d3a4..4f5aaac86a 100755 --- a/scripts/mkimage.sh +++ b/scripts/mkimage.sh @@ -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 |