New Exit Code Request
- Posts: 6
- Joined: 5 Dec 2022
I wish there was an option to have an exit code if something new was downloaded. This would allow me exit the script if nothing new is downloaded or continue if there are new files.
- Posts: 1037
- Joined: 8 May 2006
And what, currently a 0, success, means both successfully synced & also successfully "did nothing" (if there was nothing needing to be synced).
- Posts: 4056
- Joined: 11 Jun 2019
That is two different scenarios though. Successfully synced doesn't inherently mean new files were created or not created. Sounds like that differentiation is what is being requested. Of course, the log file could be parsed, but an exit code would be simplerAnd what, currently a 0, success, means both successfully synced & also successfully "did nothing" (if there was nothing needing to be synced). therube, 05 Dec 2022, 17:36