Deprecated eval usage on qt/tools/typecheck-setup.sh
This commit is contained in:
parent
b1b3e5b87c
commit
6c8b005cab
@ -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 New Issue
Block a user