From e63383012f3ed2cfb80c4d87833b03ff56f741e8 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sat, 25 May 2019 02:31:03 -0600 Subject: [PATCH] fix: tmpdir error msg truncates logfile --- backup_new.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup_new.sh b/backup_new.sh index d3280a8..4dc77cf 100755 --- a/backup_new.sh +++ b/backup_new.sh @@ -321,7 +321,7 @@ printf "${cyan}[%s] -- [INFO] ${yellow}%s${cyan} imported --${norm}\n" \ printf "${cyan}[%s] -- [INFO] Dumping SQL databases --${norm}\n" \ "$(stamp)" >> "$logFile" # create temporary directory to dump files before borg backup -if ! sqlDumpDir=$( mktemp -d 2>"$logFile"); then +if ! sqlDumpDir=$( mktemp -d 2>>"$logFile"); then exitError 111 "Could not create temporary directory to dump SQL files" fi printf "${cyan}[%s] -- [INFO] SQL dump files will be temporarily stored in:" \