From d2359e4361eba5e582023cd5803e9c32a9af71fd Mon Sep 17 00:00:00 2001 From: Robert Stoll Date: Fri, 1 Nov 2024 10:10:56 +0100 Subject: [PATCH] mkdir -p gpgDir as public-keys might not exist (e.g. --unsecure true) --- src/utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.sh b/src/utils.sh index be868df..d8913c9 100644 --- a/src/utils.sh +++ b/src/utils.sh @@ -170,7 +170,7 @@ function reInitialiseGitDirIfDotGitNotPresent() { function initialiseGpgDir() { local -r gpgDir=$1 shift 1 || traceAndDie "could not shift by 1" - mkdir "$gpgDir" || die "could not create the gpg directory at %s" "$gpgDir" + mkdir -p "$gpgDir" || die "could not create the gpg directory at %s" "$gpgDir" # it's OK if we are not able to set the rights as we only use it temporary. This will cause warnings by gpg # so the user could be aware of that something went wrong chmod 700 "$gpgDir" || true