Created
January 11, 2017 15:32
-
-
Save eduardo-g-silva/2f16302e6a95a880e41d84f1fbf35673 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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