proper fix for __pycache__ folders preventing remove on ./run

This commit is contained in:
Damien Elmes 2021-01-10 16:17:55 +10:00
parent 9bc8434538
commit fc216401e5

2
run
View file

@ -11,7 +11,7 @@ run_mac() {
# so we need to copy the files into a working folder before running on a Mac.
workspace=$(dirname $0)
bazel build $BUILDARGS //qt:runanki && \
rsync -aiL --exclude=anki/external --exclude=__pycache__ --delete --force-delete \
rsync -aiL --exclude=anki/external --delete -f'-p __pycache__' \
$workspace/bazel-bin/qt/runanki* $workspace/bazel-copy/ && \
$workspace/bazel-copy/runanki $*
}