fai-sed exit code
aheinlein at gmx.com
Fri Jan 10 16:16:19 CET 2020
Am 10.01.20 um 16:02 schrieb Thomas Lange:
> I want to distinguish if fai-sed has nothing to change or changed the
> file. Therefore in one the cases it has to return and exit code != 0.
> Do you have any better idea?
If you want to do this, no, I have no better idea. You would have to exit any script using fai-sed with "exit 0" at the end, or the fai master process will treat the script as failed.
Maybe you could add a "-q" switch to fai-sed that will turn off that behaviour for those who don't need it?
More information about the linux-fai