mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 13:23:05 +07:00
Fix extension logs
This commit is contained in:
parent
4f420be5bd
commit
2cb9b82943
@ -14,7 +14,7 @@ self_hosted_helper() {
|
|||||||
# Function to install a package
|
# Function to install a package
|
||||||
install_packages() {
|
install_packages() {
|
||||||
packages=("$@")
|
packages=("$@")
|
||||||
[[ "${packages[*]}" =~ php ]] && add_ppa ondrej/php
|
[[ "${packages[*]}" =~ php ]] && add_ppa ondrej/php >/dev/null 2>&1
|
||||||
$apt_install "${packages[@]}" >/dev/null 2>&1 || (update_lists && $apt_install "${packages[@]}" >/dev/null 2>&1)
|
$apt_install "${packages[@]}" >/dev/null 2>&1 || (update_lists && $apt_install "${packages[@]}" >/dev/null 2>&1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ update_lists() {
|
|||||||
elif grep -Eq '^deb ' "$list_file"; then
|
elif grep -Eq '^deb ' "$list_file"; then
|
||||||
list="$list_file"
|
list="$list_file"
|
||||||
fi
|
fi
|
||||||
update_lists_helper "$list"
|
update_lists_helper "$list" >/dev/null 2>&1
|
||||||
echo '' | tee /tmp/setup_php >/dev/null 2>&1
|
echo '' | tee /tmp/setup_php >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user