]> WPIA git - infra.git/commit
fix: correct non-interactive forcing of apt commands
authorLucas Werkmeister <mail@lucaswerkmeister.de>
Sat, 5 Jan 2019 14:04:17 +0000 (15:04 +0100)
committerLucas Werkmeister <mail@lucaswerkmeister.de>
Sat, 5 Jan 2019 14:07:46 +0000 (15:07 +0100)
commit1ad80db073a2296e7853b8e958c7dbab228cd699
treef49a5f8ab940be4cb64a91cfc255da359dad1168
parent58c1a7f1b0cb64dbcc541e3c38bf9f2df726f3c6
fix: correct non-interactive forcing of apt commands

Change I8998df2b44 (commit 58c1a7f1b0) changed these apt commands to
pipe into `cat` so that they will use non-interactive output. However,
not only was the use of a dedicated subshell and `cat` per command
wasteful, it also introduced a bug – in a pipeline, only the exit status
of the last component matters (unless `set -o pipefail` is in effect):

    $ ( false | cat ) && echo 'This still runs.'
    This still runs.

Change-Id: I22e76749faeec7589e1a4353c6d23db31070daf3
manager/setup