mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
avoid sudo in typecheck setup if possible
This commit is contained in:
parent
101f42f333
commit
52254e0176
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue