Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexhayes/2879044 to your computer and use it in GitHub Desktop.
Save alexhayes/2879044 to your computer and use it in GitHub Desktop.
Test that rsync and php4-domxml are working on old Debian
#!/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