Skip to content

Commit

Permalink
Merge pull request #233 from tegonal/bugfix/initialise-gpg-dir-and-un…
Browse files Browse the repository at this point in the history
…secure

mkdir -p gpgDir as public-keys might not exist (e.g. --unsecure true)
  • Loading branch information
robstoll authored Nov 1, 2024
2 parents 18b7bf7 + d2359e4 commit deed2c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit deed2c4

Please sign in to comment.