fai-sed exit code

Thomas Lange lange at informatik.uni-koeln.de
Mon Jan 13 13:04:58 CET 2020


>>>>> On Fri, 10 Jan 2020 16:16:19 +0100, Andreas Heinlein <aheinlein at gmx.com> said:

    > 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?
I can add such an option, which I already have with fcopy.
I a shell script, you can use this code to always get exit 0 from a command.

fai-sed ...... || true


-- 
regards Thomas


More information about the linux-fai mailing list