Re: Script fails on return code greater than 1, but not on 1
I do not really remember the historical reasons for this anymore.
It may be related to
Anyway, the next version of WinSCP will optionally allow treating 1 as an error, when executing user shell commands on a server:
https://winscp.net/tracker/1694
https://winscp.net/eng/docs/rawsettings#exitcode1iserror
I can send you a development version for testing, if you contact me on my email address.
It may be related to
ls
command returning 1 as a warning.
Anyway, the next version of WinSCP will optionally allow treating 1 as an error, when executing user shell commands on a server:
https://winscp.net/tracker/1694
https://winscp.net/eng/docs/rawsettings#exitcode1iserror
I can send you a development version for testing, if you contact me on my email address.
You will find my address (if you log in) in my forum profile.