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

View file

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