mirror of
https://github.com/ankitects/anki.git
synced 2026-01-14 14:29:10 -05:00
Deprecated eval usage on qt/tools/typecheck-setup.sh
This commit is contained in:
parent
093af85c2e
commit
b376b78527
1 changed files with 3 additions and 5 deletions
|
|
@ -18,11 +18,9 @@ case "${unameOut}" in
|
|||
;;
|
||||
esac
|
||||
|
||||
cmd="rsync -a \"${TOOLS}/stubs/PyQt5/\" \"${modDir}/\""
|
||||
|
||||
if [[ "w${OS}" == "wWindows_NT" ]];
|
||||
if [[ "w${OS}" == "wWindows_NT" ]];
|
||||
then
|
||||
eval "${cmd}" > /dev/null 2>&1 || eval "${cmd}"
|
||||
rsync -a "${TOOLS}/stubs/PyQt5/" "${modDir}/"
|
||||
else
|
||||
eval "${cmd}" > /dev/null 2>&1 || eval "${cmd}" || eval "sudo ${cmd}"
|
||||
rsync -a "${TOOLS}/stubs/PyQt5/" "${modDir}/" || sudo rsync -a "${TOOLS}/stubs/PyQt5/" "${modDir}/"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue