Update storage-test.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user