Re: fai-sed exit code

Thomas Lange <[email protected]>
Newsgroups gmane.linux.debian.fai
Message-ID <[email protected]>
>>>>> On Fri, 10 Jan 2020 16:16:19 +0100, Andreas Heinlein <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.