Fix complaints about gpg's home directory not existing
This commit is contained in:
parent
ea21f61d83
commit
546ef9fa6a
1 changed files with 4 additions and 4 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue