hide errors when sudo required for typecheck setup

This commit is contained in:
Damien Elmes 2019-12-20 10:39:24 +10:00
parent b55e2e7dfb
commit b5fe37d171

View File

@ -10,4 +10,4 @@ TOOLS="$(cd "`dirname "$0"`"; pwd)"
modDir=$(python -c 'import PyQt5, sys, os; print(os.path.dirname(sys.modules["PyQt5"].__file__))')
cmd="rsync -a $TOOLS/stubs/PyQt5/* $modDir/"
$cmd || sudo $cmd
$cmd > /dev/null 2>&1 || sudo $cmd