#!/bin/bash ext=$1 line="extension=$ext.so" ini="/usr/local/etc/php/conf.d/${iniName:-"docker-php-ext-$ext.ini"}" if ! grep -q "$line" "$ini" 2>/dev/null; then echo "$line" >> "$ini" fi