Deprecated eval usage on qt/tools/typecheck-setup.sh

This commit is contained in:
evandrocoan 2020-03-23 18:54:24 -03:00
parent b1b3e5b87c
commit 6c8b005cab

View File

@ -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