Treat Nothing to synchronize as success
Hello, I have script that runs 4 times a day for synchronization of one directory, the script works fine, but the data does not always change so the script returns Nothing to synchronize as shown below with error code 1
Is there any way to still treat other errors as exit code 1, but nothing to synchronize as exit code 0 ?
< 2021-06-09 08:00:54.321 Script: Nothing to synchronize. > 2021-06-09 08:00:54.321 Script: exit . 2021-06-09 08:00:54.321 Script: Exit code: 1 . 2021-06-09 08:00:54.321 Closing connection. . 2021-06-09 08:00:54.321 Sending special code: 1 . 2021-06-09 08:00:54.383 Session sent command exit status 0 . 2021-06-09 08:00:54.383 Main session channel closed . 2021-06-09 08:00:54.383 All channels closed . 2021-06-09 08:00:54.664 [Tunnel] Closing connection. . 2021-06-09 08:00:54.664 [Tunnel] Sending special code: 1