From c9e9f839637835910a37773b15176df673b99fee Mon Sep 17 00:00:00 2001 From: "G.raud" Date: Mon, 31 Mar 2014 15:08:05 +0200 Subject: [PATCH] archives2git: [fix] check that mktemp succeeds --- archives2git | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/archives2git b/archives2git index f845ef1..dafe2a7 100755 --- a/archives2git +++ b/archives2git @@ -130,7 +130,11 @@ done # setup NL=' ' -TMPDIR=$(mktemp -d) +TMPDIR=$(mktemp -d) || +{ + echo >&2 "$PROGRAM_NAME: error: cannot create a temporary directory" + exit 253 +} WRKDIR=$(pwd) # git repository check cd "$GIT_WORK_TREE" && -- 2.11.4.GIT