Handle relative path; Enhancing README

This commit is contained in:
2024-10-08 20:13:43 +02:00
parent c4d25bcea8
commit c865dcaf5a
8 changed files with 12 additions and 0 deletions

View File

@ -19,6 +19,11 @@ do
;;
d)
DATA_DIR=${OPTARG}
if [[ "${DATA_DIR}" != /* ]]
then
# I want an absolute directory
DATA_DIR=$(pwd)/${DATA_DIR}
fi
;;
n)
MAX_NUM=${OPTARG}