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,8 +330,9 @@ echo "$test"
php_versions=$(ls /usr/local/etc/php/) php_versions=$(ls /usr/local/etc/php/)
for php in $php_versions for php in $php_versions
do do
if [ -n "$upd3" ]; then
# file modified since it was last read # file modified since it was last read
#if [ -N /usr/local/etc/php/$php/php.ini ]; then echo "modified"; fi
php_modified=$(find /usr/local/etc/php/$php/ -name php.ini -newer /tmp/checkpoint) php_modified=$(find /usr/local/etc/php/$php/ -name php.ini -newer /tmp/checkpoint)
php_ini=/usr/local/etc/php/$php/php.ini php_ini=/usr/local/etc/php/$php/php.ini
@@ -342,6 +343,8 @@ do
[ ! -z $php_modified ] && echo -e "\033[1;31m❗ $notif2\033[0m" [ ! -z $php_modified ] && echo -e "\033[1;31m❗ $notif2\033[0m"
[ ! -z $php_modified ] && notification "$notif2" [ ! -z $php_modified ] && notification "$notif2"
fi
done done
echo "" echo ""