Merge pull request #653 from evandroforks/add_missing_quotes

Add missing quotes to typecheck-setup.sh for paths with spaces on
This commit is contained in:
Damien Elmes 2020-06-03 10:43:10 +10:00 committed by GitHub
commit 63201d450d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ if [[ -z "${OS+x}" ]]; then
fi
TOOLS="$(cd "`dirname "$0"`"; pwd)"
modDir=$(python -c 'import PyQt5, sys, os; sys.stdout.write(os.path.dirname(sys.modules["PyQt5"].__file__))')
modDir="$(python -c 'import PyQt5, sys, os; sys.stdout.write(os.path.dirname(sys.modules["PyQt5"].__file__))')"
# fix broken stubs in pyqt5.15.0 release
(cd $modDir && perl -i'' -pe 's/(\s*None) =/$1_ =/' *.pyi && touch py.typed)
(cd "$modDir" && perl -i'' -pe 's/(\s*None) =/$1_ =/' *.pyi && touch py.typed)