Update storage-test.sh

This commit is contained in:
2025-05-04 09:34:47 -05:00
parent 33f02ffc40
commit f22208ff9e

View File

@@ -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