diff --git a/create-attributable-archive.sh b/create-attributable-archive.sh index dbccc44..0569eef 100755 --- a/create-attributable-archive.sh +++ b/create-attributable-archive.sh @@ -59,8 +59,14 @@ printf "ssh: signing out/contents.7z" ssh-keygen -Y sign -f "$key_path" -n "$signature_tag" "$out_dir/contents.7z" > /dev/null 2>&1 checkcode $? +printf "changing directory to $out_dir" +cd "$out_dir" +checkcode $? printf "sha512: generating sha512 checksums of files in out" -sha512sum $out_dir/* > "$out_dir/checksums.sha512" +sha512sum * > "checksums.sha512" +checkcode $? +printf "changing directory back" +cd .. checkcode $? echo "Enter attribution passphrase:"