for folder in `find . -type d | grep -v 'chat\|trash\|temp\|pad\|git\|common' | grep 'wombat\|nuage\|partage\|mairie'`; do cd $folder; libre diff ../../common/nextcloud/manifests/pg.yml; retVal=$? if [ $retVal -ne 0 ]; then read -p "Press any key to apply..." libre apply ../../common/nextcloud/manifests/pg.yml; fi cd ../..; done