]> git.phdru.name Git - git-scripts.git/blobdiff - add-pubkey/post-checkout
Simplify regular expressions for `compileall`
[git-scripts.git] / add-pubkey / post-checkout
index 19ac074d0a08236c8a7b030b80b49f48b8b06882..5017228fcdd43e1878382447164230b4b6e57f98 100755 (executable)
@@ -11,8 +11,8 @@ if [ \( "$new_branch" = 1 \) ]; then
    if [ "$new_HEAD" = "`git rev-parse phd-pubkey`" ]; then
       git clean -d -f -q
    else
-      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
 fi