summaryrefslogtreecommitdiff
path: root/dd-bench.sh
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@iohq.net>2016-03-04 21:36:52 -0700
committerAaron Ball <nullspoon@iohq.net>2016-03-04 21:36:52 -0700
commitef344744c7216ed55423130fec7d1741fb2c8ac9 (patch)
tree13201a189ce62d64b17544ee01e6819426a1ed28 /dd-bench.sh
parentab8cc1625a1b0516f8d613258f94791df47e7c08 (diff)
downloaddd-bench-master.tar.gz
dd-bench-master.tar.xz
Changed pre-start sleep to readHEADmaster
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.
Diffstat (limited to 'dd-bench.sh')
-rwxr-xr-xdd-bench.sh15
1 files 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}"

Generated by cgit