Browse Source

configure: fix integer regex and exit logic

compat
lephe 4 months ago
parent
commit
b0ede1d15d
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      configure

+ 2
- 1
configure 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 ""

Loading…
Cancel
Save