Skip to content

Commit

Permalink
Only update config file if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
helhum committed Jul 1, 2012
1 parent 16eb4da commit cf7ce28
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions install-php-extension.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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


0 comments on commit cf7ce28

Please sign in to comment.