From ef344744c7216ed55423130fec7d1741fb2c8ac9 Mon Sep 17 00:00:00 2001 From: Aaron Ball Date: Fri, 4 Mar 2016 21:36:52 -0700 Subject: Changed pre-start sleep to read Was sleeping for 5 seconds after execution, which is barely enough time to read the warning message. Any amount of wait time though can be unexpected, so added a "read" and "press enter to continue" message so the user can execute when they want to. --- dd-bench.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/dd-bench.sh b/dd-bench.sh index 094782e..b2d611c 100755 --- a/dd-bench.sh +++ b/dd-bench.sh @@ -89,14 +89,13 @@ function main { fi # Warn the user - echo "This script will write up to 20 GB of data before it's done" - echo "benchmarking. Be sure you have that much storage to spare on the disk" - echo -e "being benchmarked.\n" - wait=5 - echo -e "Proceeding with benchmark in ${wait} seconds...\n\n" - sleep ${wait} - - echo -e "Benchmark started at $(date)\n" + echo -e "\nThis script will write up to 20 GB of data before it's done" + echo -e "benchmarking. Be sure you have that much storage to spare on the" + echo -e "disk being benchmarked.\n" + echo -e -n "\nPress enter to continue... " + read + + echo -e "\n\nBenchmark started at $(date)\n" path="${1}" -- cgit v1.2.3