Gair
Contributor
Contributor

Product Provisioning/File & Script Deployment - macOS

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 +

Labels (1)
0 Kudos
0 Replies