TristanBrotherton/netcheck

Relative and absolute path mixed for speedtest-cli.py

pietropelizzari opened this issue · 1 comments

When the speedtest-cli.py script is called using the $VAR_SCRIPTLOC variable it is treated as a relative path, i.e. './' is added in front of it.

./$VAR_SCRIPTLOC/speedtest-cli.py --simple | sed 's/^/ /' | tee -a $VAR_LOGFILE

I was honestly a bit lazy and I did not investigate the reason for this error but if I simply remove './' the script works fine.

Thanks a lot for sharing it btw!

I appreciate the report! Thanks for digging in. Oddly on my system it managed to run anyway. I've fixed this in the latest commit.