Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save eduardo-g-silva/2f16302e6a95a880e41d84f1fbf35673 to your computer and use it in GitHub Desktop.
Save eduardo-g-silva/2f16302e6a95a880e41d84f1fbf35673 to your computer and use it in GitHub Desktop.
#!/bin/bash
wp core verify-checksums --path=/<path-to-wp-folder> &> /<path-to-temp-folder-to-compare-outputs>/wpcore.txt
if ! comm -3 <(sort /<path-to-temp-folder-to-compare-outputs>/wpcore-master.txt) <(sort /<path-to-temp-folder-to-compare-outputs>/wpcore.txt) | grep -q '.*'; then
echo "all fine folks"
else
php -f /<path-to-php-file-that-send-message>/phpushbullet/oe-push.php
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment