]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
install-deps.sh: keep debian alternatives
authorLoic Dachary <ldachary@redhat.com>
Fri, 29 May 2015 21:55:01 +0000 (23:55 +0200)
committerLoic Dachary <ldachary@redhat.com>
Fri, 29 May 2015 21:55:01 +0000 (23:55 +0200)
commitbbf75f811cdc701cb6920edb1dde68b9534d36cf
tree2296d85e7db8481b77e084bb2d4871fb97b95f41
parentcbc96a08d0dae4ad748c222a265a80bccb49ed24
install-deps.sh: keep debian alternatives

Instead of removing the | when an alternative is found in the control
file such as

     cryptsetup-bin | cryptsetup

remove the surrounding spaces so that it is treated as a regular
expression that matches either one.

Replace the form

    sudo bash -c "FOO=bar ..."

with

    sudo env FOO=bar ...

to reduce the levels of shell escaping.

Reported-by: http://dyweni.com/
Signed-off-by: Loic Dachary <ldachary@redhat.com>
install-deps.sh