Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Add check for directory path before attempting to create dd file #190

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions setup/benchmarks/disk-benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ USER_HOME_PATH=$(getent passwd $SUDO_USER | cut -d: -f6)
IOZONE_INSTALL_PATH=$USER_HOME_PATH
IOZONE_VERSION=iozone3_489

# Create directory if it does not already exist
if [ ! -d $DEVICE_MOUNT_PATH ]; then
mkdir -p $DEVICE_MOUNT_PATH
fi

cd $IOZONE_INSTALL_PATH

# Install dependencies.
Expand Down