diff --git a/mtm-ddwipe b/mtm-ddwipe index c0bd7e2..f349a28 100755 --- a/mtm-ddwipe +++ b/mtm-ddwipe @@ -1,7 +1,7 @@ #!/bin/bash declare -r DEV="${1}" -declare STARTDATE="$(date)" +declare STARTDATE="" show_help() { echo "ddwipe dev (/dev/sdX)" @@ -37,6 +37,7 @@ confirm_wipe() { } wipe_dev() { + STARTDATE="$(date)" echo "Begin wiping device ${1}" echo "" echo "Start date :"