-
-
Save alexhayes/2879044 to your computer and use it in GitHub Desktop.
Test that rsync and php4-domxml are working on old Debian
This file contains hidden or 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 | |
EXIT_STATUS=0 | |
# Test that domxml is installed | |
php -r "domxml_version();" > /dev/null 2>&1 | |
if [ $? -ne 0 ]; then | |
echo -e "\a#### Error: php4-domxml not loaded ####" | |
EXIT_STATUS=1 | |
fi | |
# Test that rsync is installed | |
rsync -h > /dev/null 2>&1 | |
if [ $? -ne 0 ]; then | |
echo -e "\a#### Error: rsync not installed ####" | |
EXIT_STATUS=1 | |
fi | |
exit $EXIT_STATUS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment