Bash script works ok from SSH Terminal, not when used as shell_command service in HASS.IO

it indeed gives an error there, the command works though

any idea what that means?

image