avoid sudo in typecheck setup if possible

This commit is contained in:
Damien Elmes 2019-12-18 17:14:44 +10:00
parent 101f42f333
commit 52254e0176

View File

@ -8,6 +8,6 @@
TOOLS="$(cd "`dirname "$0"`"; pwd)"
modDir=$(python -c 'import PyQt5, sys, os; print(os.path.dirname(sys.modules["PyQt5"].__file__))')
cmd="rsync -av $TOOLS/stubs/PyQt5/* $modDir/"
sudo rsync -av $TOOLS/stubs/PyQt5/* $modDir/
$cmd || sudo $cmd