Tool/software:
Hello,
I've found the issue with the SDK, which I downloaded from here.
As it's described documentation I'm supposed to `source ./setupenv.sh` script, which fails with the following error:
Error!! Don't run pdksetupenv.sh, source it
The reason for the failure is this line in pdksetupenv.sh:
if [[ "$(basename -- "$0")" == "pdksetupenv.sh" ]]; then
It works only if you execute ./setupenv.sh, but when you source it, then $0 is expanded to `pdksetupenv.sh` instead, which is not what is supposed to happen. When this snippet is changed to
(return 0 2>/dev/null) if [ $? -ne 0 ]; then
then it works as expected.
I couldn't find the proper place to report it, that's why I'm posting it here.
Environment: Ubuntu 24.04