diff --git a/restore-mysql-daily b/restore-mysql-daily index d434f0b..af44ebf 100644 --- a/restore-mysql-daily +++ b/restore-mysql-daily @@ -45,7 +45,7 @@ while [[ $# -gt 0 ]]; do case $1 in -d|--dry-run) DRY_RUN=true - CMD=echo + CMD=CMD="echo $(tput setaf 3)EXECUTE: $(tput sgr 0)"; echo shift 1 ;; -a|--archive) @@ -246,4 +246,4 @@ fi END=$(date +%s) EXCTIME=$(expr $END - $START) printf '\ntotal runtime: %02dh:%02dm:%02ds\n' $((EXCTIME/3600)) $((EXCTIME%3600/60)) $((EXCTIME%60)) -echo "\n--END: $(date +%F\ %T)\n\n" +echo -e "\n--END: $(date +%F\ %T)\n\n"