Skip to content

Instantly share code, notes, and snippets.

@tuxcanfly
Created October 4, 2010 07:57
Show Gist options
  • Save tuxcanfly/609365 to your computer and use it in GitHub Desktop.
Save tuxcanfly/609365 to your computer and use it in GitHub Desktop.
#!/bin/bash
FROM='[email protected]';
TO='[email protected]';
rm -rf pypi
if virtualenv --no-site-packages --distribute pypi && pip install -E pypi -r agiliq_packages.txt > test_result.txt; then
message='Installations successful!';
else
message='Installations failed. See attached file for details'
fi
rm -rf pypi
echo $message | mail -s '[InstallBot]' -a test_result.txt -r $FROM $TO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment