Update storage-test.sh
This commit is contained in:
@@ -81,7 +81,7 @@ Get_Text() {
|
|||||||
|
|
||||||
# Check if script is running as root first
|
# Check if script is running as root first
|
||||||
if [[ "$(whoami)" != "root" ]]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -105,6 +105,13 @@ IO4kRandWrite=0
|
|||||||
ChosenPartition=""
|
ChosenPartition=""
|
||||||
if [ "$1" = "" ]; then
|
if [ "$1" = "" ]; then
|
||||||
# User did not provide a partition/folder, change directory to rootfs
|
# 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 /
|
cd /
|
||||||
else
|
else
|
||||||
if [ ! -d "$1" ]; then
|
if [ ! -d "$1" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user