diff --git a/install-php-extension.sh b/install-php-extension.sh index bc0d44c..79a726f 100755 --- a/install-php-extension.sh +++ b/install-php-extension.sh @@ -3,7 +3,6 @@ name=$1 pecl install $name -echo "extension=\"$name.so\"" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"` - +[ -z "`grep $name.so $phpConfigFile`" ] && echo "extension=\"$name.so\"" >> $phpConfigFile