Changeset - 985ce2fb6c90
[Not reviewed]
0 1 0
Brett Smith (brett) - 4 years ago 2017-09-26 17:57:42
brett@sfconservancy.org
cron: Exclude what are obviously scripts from compilation.

The impetus here is to stop the script from trying to compile and
complaining about
<www/conservancy/static/projects/policies/publish-travel-policy.py>, which
is a script written in Python 3 meant to help with repository maintenance.

Excluding files with `-` in the name seems reasonable since they can't be
modules anyway, so there's no reason to compile them.

This will start failing if we add a similar script later that doesn't have a
`-` in its name.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
cron/scripts/website-update.sh
Show inline comments
...
 
@@ -45,7 +45,7 @@ if [ "$(git rev-parse "$PRODUCTION_BRANCH")" = "$(git rev-parse "$git_upstream")
 
fi
 

	
 
git merge --quiet --ff-only "$git_remote" "$git_refspec"
 
python2 -m compileall -q www || exitcode=$?
 
python2 -m compileall -q -x - www || exitcode=$?
 
chgrp -R www-data www || exitcode=$?
 
chmod -R g+rX-w,o+X-w www || exitcode=$?
 
chmod -R o+r www/conservancy/static || exitcode=$?
0 comments (0 inline, 0 general)