Fix complaints about gpg's home directory not existing

This commit is contained in:
Starbeamrainbowlabs 2019-08-06 00:37:51 +01:00
parent ea21f61d83
commit 546ef9fa6a
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -74,6 +74,10 @@ task_setup() {
fi
task_end $?;
task_begin "Creating directories";
mkdir "${dir_sources}" "${dir_repo}" "${GNUPGHOME}";
task_end $?;
if [ ! -e "${GNUPGHOME}" ]; then
if [ ! -f "./secret.gpg" ]; then
echo "Couldn't find the secret key to use.";
@ -87,10 +91,6 @@ task_setup() {
task_end $?;
fi
task_begin "Creating directories";
mkdir "${dir_sources}" "${dir_repo}";
task_end $?;
if [ ! -f "${repo_dir}/aptosaurus.asc" ]; then
task_begin "Hard linking public signing key";
cp -al "./public.gpg" "${dir_repo}/aptosaurus.asc";