Fix gpg key import logic

This commit is contained in:
Starbeamrainbowlabs 2019-08-06 00:41:43 +01:00
parent 89475eaca8
commit e1cc931f3e
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 3 additions and 2 deletions

View File

@ -75,10 +75,11 @@ task_setup() {
task_end $?;
task_begin "Creating directories";
mkdir "${dir_sources}" "${dir_repo}" "${GNUPGHOME}";
mkdir "${dir_sources}" "${dir_repo}";
task_end $?;
if [ ! -e "${GNUPGHOME}" ]; then
if [ ! -d "${GNUPGHOME}" ]; then
mkdir "${GNUPGHOME}"
if [ ! -f "./secret.gpg" ]; then
echo "Couldn't find the secret key to use.";
echo "Make sure ${HC}secret.gpg${RS} exists on disk.";