Handle relative path; Enhancing README
This commit is contained in:
@ -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}
|
||||
|
Reference in New Issue
Block a user