#!/usr/bin/env bash

# Clear The Old Environment Variables

sed -i '/# Set Homestead Environment Variable/,+1d' /home/vagrant/.profile
sed -i '/env\[.*/,+1d' /etc/php/7.1/fpm/pool.d/www.conf
sed -i '/env\[.*/,+1d' /etc/php/7.2/fpm/pool.d/www.conf

#!/usr/bin/env bash

# Clear The Old Environment Variables

sed -i '/# Set Homestead Environment Variable/,+1d' /home/vagrant/.profile
sed -i '/env\[.*/,+1d' /etc/php/5.6/fpm/pool.d/www.conf
sed -i '/env\[.*/,+1d' /etc/php/7.0/fpm/pool.d/www.conf
sed -i '/env\[.*/,+1d' /etc/php/7.1/fpm/pool.d/www.conf
sed -i '/env\[.*/,+1d' /etc/php/7.2/fpm/pool.d/www.conf
sed -i '/env\[.*/,+1d' /etc/php/7.3/fpm/pool.d/www.conf
sed -i '/env\[.*/,+1d' /etc/php/7.4/fpm/pool.d/www.conf

Update clear variables to be consistent. h/t ProjectCleverWeb
Update clear variables to be consistent. h/t ProjectCleverWeb
