Re: fai-sed exit code

Andreas Heinlein <[email protected]>
Newsgroups gmane.linux.debian.fai
Message-ID <[email protected]>
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?

Andreas
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.