The problem was that this command added a \r before the final \n. It can be removed via:
WINDOWS_USER=$(whoami.exe | tr -d '\r')
The problem was that this command added a \r before the final \n. It can be removed via:
WINDOWS_USER=$(whoami.exe | tr -d '\r')