Hi
I am trying to deploy an xml file to the current logged on user dir. To accomplish this, I was deploying and running a script.
#!/bin/sh
CurrentUser='/usr/bin/stat -f%Su /dev/console'
cp /tmp/test.xml /Users/$CurrentUser/Desktop/test.xml
This and variants of this script have failed to work. Usually with an error "/Users/user.name\r/Desktop/test.xml no such file or directory."
The other error would be "/Users//Desktop/test.xml No such file or directory" when I remove the \r
I would appreciate any suggestions or advice on transferring files using WSO.
Thanks!
wso 21.9+ saas
macOS catalina +