diff --git a/php-helper b/php-helper index 7bff7fa..758d650 100644 --- a/php-helper +++ b/php-helper @@ -124,7 +124,7 @@ get_priority() { module_exists "$version" "$modname" || module_ret=$? if [ "$module_ret" -eq 0 ]; then - priority=$(sed -ne "s/^; \?priority=\([0-9]\+\)$/\\1/p; /[0-9]\+/q" "$source_ini") + priority=$(sed -ne "s/^;[[:space:]]*priority[[:space:]]*=[[:space:]]*\([0-9]\+\)[[:space:]]*$/\\1/p; /[0-9]\+/q" "$source_ini") [ -z "$priority" ] && priority=20 echo "$priority" return 0