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.";