New Exit Code Request

Discuss new features and functions
Posts: 6
Joined: 5 Dec 2022

Worthmo

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

therube

And what, currently a 0, success, means both successfully synced & also successfully "did nothing" (if there was nothing needing to be synced).
User avatar
Posts: 4056
Joined: 11 Jun 2019

xCSxXenon

And 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
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 simpler