Bug#392518: tex-common: fails to uninstall if /usr/local is mounted read-only
Sam Hocevar <sam@zoy.org> wrote:
> On Thu, Oct 12, 2006, Frank Küster wrote:
>
>> Apropos error checking. Folks, do you think
>>
>> - rm -f /usr/local/share/texmf/ls-R
>> + -rm -f /usr/local/share/texmf/ls-R 2>/dev/null
>>
>> would be okay? This will just drop and ignore all errors, but I can't
>> imagine any but "can't do that", and in this case we can't do anything
>> but just not do it.
>
> It's usually done this way:
>
> rm -f /usr/local/share/texmf/ls-R 2>/dev/null || true
Sorry, I have written too many Makefiles these days.
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
Reply to: