From a7fbde1a99fbf899bd910a66183b63764c6a1480 Mon Sep 17 00:00:00 2001 From: NicoHood Date: Wed, 31 Oct 2018 15:51:48 +0100 Subject: [PATCH] Create parent directies if not existant --- Readme.md | 3 +++ gpgit.sh | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index 506be3e..2dac592 100644 --- a/Readme.md +++ b/Readme.md @@ -301,6 +301,9 @@ You can get securely in touch with me [here](http://contact.nicohood.de). My GPG ## Version History ``` +1.3.3 (31.10.2018) +* Create parent directories if not existant. + 1.3.2 (15.04.2018) * Change directory to git root path, so "git archive" is working properly diff --git a/gpgit.sh b/gpgit.sh index ec184cd..b165c69 100755 --- a/gpgit.sh +++ b/gpgit.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -VERSION="1.3.2" +VERSION="1.3.3" # Avoid any encoding problems export LANG=C @@ -486,7 +486,7 @@ msg "4. Create a signed release archive" if [[ ! -d "${OUTPUT}" ]]; then plain "Creating not existing output directory: '${OUTPUT}'." interactive - mkdir "${OUTPUT}" + mkdir -p "${OUTPUT}" fi # Create new archive