From e1cc931f3e593d363403d0faed719886f45e1381 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 6 Aug 2019 00:41:43 +0100 Subject: [PATCH] Fix gpg key import logic --- aptosaurus.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aptosaurus.sh b/aptosaurus.sh index e721476..dfa1ebd 100755 --- a/aptosaurus.sh +++ b/aptosaurus.sh @@ -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.";