configure: fix integer regex and exit logic

This commit is contained in:
lephe 2019-07-04 11:39:10 -04:00
parent defb5ba779
commit b0ede1d15d
1 changed files with 2 additions and 1 deletions

3
configure vendored
View File

@ -124,7 +124,7 @@ for arg; do case "$arg" in
--atexit-max=*)
n=${arg#*=}
if [[ $n == +([0-9]) ]]; then
if [[ $n =~ ([0-9])+ ]]; then
atexit_max=$n
else
echo -e "error: -atexit-max expects an integer value"
@ -175,6 +175,7 @@ if [[ -z "$prefix" ]]; then
if [[ ! -d $inst ]]; then
echo "Directory does not exist (or is not a directory), giving up."
exit 1
fi
echo ""