ne pas afficher d'erreur si apache n'est pas installé

This commit is contained in:
Jephté Clain 2016-04-13 15:39:57 +04:00
parent 5e1a6cf517
commit 48c04203bf
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ function get_default_apachebin_prefix() {
function get_default_apacheversion_prefix() { function get_default_apacheversion_prefix() {
[ -n "$APACHEBIN" ] || return [ -n "$APACHEBIN" ] || return
local version="$($APACHEBIN -v | grep version:)" local version="$($APACHEBIN -v 2>/dev/null | grep version:)"
if [[ "$version" == *1.3* ]]; then if [[ "$version" == *1.3* ]]; then
echo "" echo ""
elif [[ "$version" == *2.0* ]]; then elif [[ "$version" == *2.0* ]]; then