Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
arpita0911patel committed Mar 25, 2024
2 parents 46a73bd + fc42b63 commit 028aa7c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions guide.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ else
read -erp "Enter your input data directory path (use absolute path): " HOST_DATA_PATH
fi

# Check the directory exists
if [ ! -d "$HOST_DATA_PATH" ]; then
echo -e "${BRed}Directory does not exist. Exiting the program.${Color_Off}"
exit 0
fi

# Save the new path to the config file
echo "$HOST_DATA_PATH" > "$CONFIG_FILE"
echo -e "The Directory you've given is:\n$HOST_DATA_PATH\n"
Expand Down

0 comments on commit 028aa7c

Please sign in to comment.