For "CLI Arguments", don't you need a shebang in the beginning of the cp.jl file?
I added #!/usr/bin/env julia as a first line, using chmod u+x on it,
than it could run it.
However, it failed with:
ERROR: LoadError: ArgumentError: 'somefolder' exists. force=true is required to remove 'somefolder' before copying.
I solved it by using the full path for cp:
cp(src, joinpath(dest, basename(src)))
For "CLI Arguments", don't you need a shebang in the beginning of the cp.jl file? I added
#!/usr/bin/env julia
as a first line, using chmod u+x on it, than it could run it.However, it failed with: ERROR: LoadError: ArgumentError: 'somefolder' exists.
force=true
is required to remove 'somefolder' before copying.I solved it by using the full path for cp:
cp(src, joinpath(dest, basename(src)))