homebrew.sh

bugfix: ne pas tester la modif des php.ini si il n’y a pas eu de mises-à-jouir
This commit is contained in:
2020-03-17 14:24:03 +01:00
parent 78f4158361
commit 4620ab071d

View File

@@ -330,17 +330,20 @@ echo "$test"
php_versions=$(ls /usr/local/etc/php/)
for php in $php_versions
do
# file modified since it was last read
#if [ -N /usr/local/etc/php/$php/php.ini ]; then echo "modified"; fi
if [ -n "$upd3" ]; then
php_modified=$(find /usr/local/etc/php/$php/ -name php.ini -newer /tmp/checkpoint)
php_ini=/usr/local/etc/php/$php/php.ini
notif2="$php_ini has been modified"
# file modified since it was last read
echo "$php_modified"
php_modified=$(find /usr/local/etc/php/$php/ -name php.ini -newer /tmp/checkpoint)
php_ini=/usr/local/etc/php/$php/php.ini
notif2="$php_ini has been modified"
[ ! -z $php_modified ] && echo -e "\033[1;31m❗ $notif2\033[0m"
[ ! -z $php_modified ] && notification "$notif2"
echo "$php_modified"
[ ! -z $php_modified ] && echo -e "\033[1;31m❗ $notif2\033[0m"
[ ! -z $php_modified ] && notification "$notif2"
fi
done
echo ""