Catch errors earlier
If `$1` and `$2` is either empty, or not a directory, then display the help. Maybe we should check that `$1` is indeed a CGAL directory.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
if [ "$1" == '--help' ]; then
|
||||
if [ "$1" == '--help' -o ! -d "$1" -o ! -d "$2" ]; then
|
||||
echo "Usage: $0 <path to CGAL release> <path to output> <number of cores to dedicate>"
|
||||
echo "Builds and packages the Polyhedron demo form the CGAL dir."
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user