fix absolute path in train_lenet_java example

This commit is contained in:
Emir Haleva 2021-07-13 19:15:45 +03:00
parent e9edd3217b
commit c96a5f8146
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ checkopts()
do
case "${opt}" in
D)
MNIST_DATA_PATH=$OPTARG
MNIST_DATA_PATH=$(realpath $OPTARG)
;;
d)
DOCKER=$OPTARG
@ -46,8 +46,8 @@ checkopts()
}
checkopts "$@"
if [ "$MNIST_DATA_PATH" == "" ]; then
echo "MNIST Dataset directory path was not provided"
if [ "$MNIST_DATA_PATH" == "" ] || [ ! -d "$MNIST_DATA_PATH" ]; then
echo "MNIST Dataset directory path was not provided or wrong path " $MNIST_DATA_PATH
display_usage
exit 1
fi