From 2d8c41412fee50ec7c6515a9653d9ac362e22147 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sat, 25 May 2019 13:17:24 -0600 Subject: [PATCH] separated var from formatting in printf --- backup_new.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup_new.sh b/backup_new.sh index 862c76b..5bcb1a8 100755 --- a/backup_new.sh +++ b/backup_new.sh @@ -50,7 +50,7 @@ cleanup () { if ! rm -rf "$sqlDumpDir" 2>>"$logFile"; then printf "${warn}[%s] -- [WARNING] Could not remove temporary " \ "$(stamp)" >> "$logFile" - printf "SQL dump directory at $sqlDumpDir. " >> "$logFile" + printf "SQL dump directory at %s. " "$sqlDumpDir" >> "$logFile" printf "Remove manually to free up space.${norm}\n" >> "$logFile" fi fi