mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 20:01:06 +07:00
Fix enabling firebird when cached
This commit is contained in:
parent
2e289f30e2
commit
57f4a60e24
@ -18,8 +18,13 @@ add_firebird_helper() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
add_firebird() {
|
add_firebird() {
|
||||||
enable_extension pdo_firebird
|
if [ "$(uname -s )" = "Darwin" ]; then
|
||||||
|
add_firebird_client_darwin >/dev/null 2>&1
|
||||||
|
fi
|
||||||
|
enable_extension pdo_firebird extension
|
||||||
|
status="Enabled"
|
||||||
if ! check_extension pdo_firebird; then
|
if ! check_extension pdo_firebird; then
|
||||||
|
status="Installed and enabled"
|
||||||
if [ "$(uname -s)" = "Linux" ]; then
|
if [ "$(uname -s)" = "Linux" ]; then
|
||||||
if [[ "${version:?}" =~ 5.3|${nightly_versions:?} ]]; then
|
if [[ "${version:?}" =~ 5.3|${nightly_versions:?} ]]; then
|
||||||
add_firebird_helper /usr >/dev/null 2>&1
|
add_firebird_helper /usr >/dev/null 2>&1
|
||||||
@ -27,9 +32,8 @@ add_firebird() {
|
|||||||
add_pdo_extension firebird >/dev/null 2>&1
|
add_pdo_extension firebird >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
add_firebird_client_darwin >/dev/null 2>&1
|
|
||||||
add_firebird_helper /opt/firebird >/dev/null 2>&1
|
add_firebird_helper /opt/firebird >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
add_extension_log pdo_firebird "Installed and enabled"
|
|
||||||
fi
|
fi
|
||||||
|
add_extension_log pdo_firebird "$status"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user