bitreich-drist

fork of bitreich.org/drist
git clone git://git.pyratebeard.net/bitreich-drist.git
Log | Files | Refs | README | LICENSE

commit 8687ce1a14997f5c8b16e5510180590e616735a1
parent 5d0d7b60b0309be640dd3848a02b110da29f24da
Author: Solene Rapenne <solene@perso.pw>
Date:   Thu, 27 Aug 2020 16:53:32 +0200

Exit when temporary directory can't be created

Diffstat:
MCHANGELOG | 7+++++++
Mdrist | 1+
2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG @@ -1,3 +1,10 @@ +V2.02 - 2020-08-27 +================== + +- Fix an issue in which drist wasn't calling exit when the + temporary directory can't be created + + V2.01 - 2020-08-27 ================== diff --git a/drist b/drist @@ -48,6 +48,7 @@ create_temp() { TEMPDIR=$(ssh $SSH_PARAMS "$1" "mktemp -d ~/.drist_files_XXXXXXXXXXXXXXX") if [ "$TEMPDIR" = "" ]; then echo "mktemp error, aborting" + exit 1 fi }