Fix gpg key import logic
This commit is contained in:
parent
89475eaca8
commit
e1cc931f3e
1 changed files with 3 additions and 2 deletions
|
@ -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.";
|
||||
|
|
Loading…
Reference in a new issue