Hello Gunnar!

On Tuesday 10 June 2008 Gunnar Thielebein wrote:
> I have an issue when trying to use fsvs in a simple shell script which
> should check the diff of an local directory and its head-revision and
> mail the output of diff to admin via a cron-job.
>
> In the  man-pages and this thread
> (http://thread.gmane.org/gmane.comp.sysutils.backup.fsvs.general/211/focus=
>217) I have seen that you for some reason doesnt forward the exitcode of
> diff but that I can use the -W flag to override that behaviour.
>
> When I use this command (and there are modifications in fileset):
>
> if sudo fsvs -Wdiff-status=stop diff /;then echo $?;fi
>
> I still get exitcode 0. Is there some error in usage?
No; you're doing nothing wrong.
But for changes "diff" returns a 1, and this is always ignored.
Only the 2 (for binary files) could get checked.

> Do you mind of some other way checking for changes?
I'm currently implementing an option "stop_change" for use in scripts.

Please stand by :-)


Regards,

Phil

-- 
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to