Exit when temporary directory can't be created - drist - a remote deployment tool HTML git clone git://bitreich.org/drist/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/drist/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 8687ce1a14997f5c8b16e5510180590e616735a1 DIR parent 5d0d7b60b0309be640dd3848a02b110da29f24da HTML Author: Solene Rapenne <solene@perso.pw> Date: Thu, 27 Aug 2020 16:53:32 +0200 Exit when temporary directory can't be created Diffstat: M CHANGELOG | 7 +++++++ M drist | 1 + 2 files changed, 8 insertions(+), 0 deletions(-) --- DIR 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 ================== DIR 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 }