On Mon, Apr 25, 2016 at 8:23 AM, Robert Peichaer <rob...@peichaer.org> wrote: > If the install fails, the original library file is restored. > > The "install .. && rm .. || mv ..." is identical to if-then-else and could > be written like this too. > > if install -o root -g bin -m 0444 $_lib /usr/lib/$_lib; then > rm -f /usr/lib/$_tmplib > else > mv /usr/lib/$_tmplib /usr/lib/$_lib > fi
Shouldn't this use install -S like a normal src build does? Then the need for cleanup on failure goes away, no?