Hi,
Im having issues with a simple post-commit script. The goal is to update a different working-copy if a special keyword is present in the commit message:
The script im using for testing is:
#!/bin/bash
REPO="$1"
REV="$2"
TEST_SERVER="localhost"
PROD_SERVER="172.16.16.1"
# Check for a deployment signal
if ( svnlook log -r $REV $REPO | grep "~~DEPLOY~~" )
then
/usr/bin/svn update /users/luismartins/sites/MDF-live
fi
For some reason the IF condition im checking does nothing when i commit with the ~~DEPLOY~~ keyword present in the commit comments. When i run the script trough text-wrangler i get svnlook error related to the lack of arguments, but thats because its running outside of a subversion commit i believe.
Am i doing anything wrong here?
Thanks.