From 32231e92002b079964fee6a7c1966ec32fe18dd4 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Thu, 23 Mar 2017 23:18:30 -0700 Subject: [PATCH] Go into subdirectory when checksumming/signing Signed-off-by: Alexey Neyman --- maintainer/create-release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maintainer/create-release.sh b/maintainer/create-release.sh index f7d83bd6..6aa4cc88 100755 --- a/maintainer/create-release.sh +++ b/maintainer/create-release.sh @@ -95,9 +95,9 @@ do_trace "Packaging" for fmt in "${formats[@]}"; do tar c${tar_opt[$fmt]}f "release/${version}.tar.${fmt}" -C "release" "${version}" for h in "${digests[@]}"; do - ${h}sum "release/${version}.tar.${fmt}" > "release/${version}.tar.${fmt}.${h}" + (cd "release" && ${h}sum "${version}.tar.${fmt}") > "release/${version}.tar.${fmt}.${h}" done if [ "${use_gpg}" = "yes" ]; then - gpg --detach-sign "release/${version}.tar.${fmt}" + (cd "release" && gpg --detach-sign "${version}.tar.${fmt}") fi done