From f22208ff9e857319e8713b959ea37b93a0f42dd3 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 4 May 2025 09:34:47 -0500 Subject: [PATCH] Update storage-test.sh --- storage-test.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/storage-test.sh b/storage-test.sh index d08250f..a9605e1 100755 --- a/storage-test.sh +++ b/storage-test.sh @@ -81,7 +81,7 @@ Get_Text() { # Check if script is running as root first if [[ "$(whoami)" != "root" ]]; then - Print_Style "Benchmarks must be ran as root! Example: sudo ./Storage.sh" "$RED" + Print_Style "Benchmarks must be ran as root!" "$RED" exit 1 fi @@ -105,6 +105,13 @@ IO4kRandWrite=0 ChosenPartition="" if [ "$1" = "" ]; then # User did not provide a partition/folder, change directory to rootfs + df=0 + for d in "$(df | grep ext4)"; do + ((df++)) + echo "${df}) ${d}" + done + + exit 0 cd / else if [ ! -d "$1" ]; then