Copy application to SMB share script

Good afternoon (o;

For making life a little easier I found this script on this forum to be used after the building a Linux app on macOS:

Var result As String
Var BuildsFolder As string = CurrentBuildlocation
Var command As String

command = "cp -r " + BuildsFolder + "/Volumes/xojoshare"

result = DoShellCommand(command)

Though the application is not copied over to the samba share.
When doing the copy from terminal it works fine though.

Is CurrentBuildLocation wrong?

thanks in advance
richard

If you put a print statement in there, you can see what the command is:

Print command

I think you’re missing a space between BuildFolder and /Volumes however.

1 Like

Stupid me…but thanks for the “print” hint (o;

Should of course be with a space before the destination path:

command = "cp -r " + BuildsFolder + " /Volumes/xojoshare"

1 Like