]> git.phdru.name Git - git-scripts.git/blobdiff - hooks/post-checkout/compyle
Simplify regular expressions for `compileall`
[git-scripts.git] / hooks / post-checkout / compyle
index 0952d434b372071a44d088f93a024ddc80512229..c78191391705240f5d818bbd25372ec9bb4462d0 100755 (executable)
@@ -8,8 +8,8 @@ new_HEAD="$2"
 new_branch="$3"
 
 if [ "$new_branch" = 1 ]; then
-   python    -m compileall -q -x '\.tox/.+' . &&
-   python -O -m compileall -q -x '\.tox/.+' .
+   python    -m compileall -q -x '\.tox/' . &&
+   python -O -m compileall -q -x '\.tox/' .
 fi
 
 exit 0