mirror of https://github.com/CGAL/cgal
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:
parent
57b37e3e1d
commit
841a2505fa
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue