]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
build/ops: fix /etc/os-release parsing in install-deps.sh 10981/head
authorNathan Cutler <ncutler@suse.com>
Mon, 5 Sep 2016 13:40:33 +0000 (15:40 +0200)
committerNathan Cutler <ncutler@suse.com>
Mon, 5 Sep 2016 14:20:49 +0000 (16:20 +0200)
commitfd37e87f6de0b8e272a2859ec52d6ceab277db7a
tree8d30495e29f0e9d685f6abd9f3978f003dfd7e64
parent187e4fcb1e48ae5fa29fac40fedb225136a7d0ce
build/ops: fix /etc/os-release parsing in install-deps.sh

85a370e35fc42031a7f7e24dea9e50a649c0f309 introduced the DISTRO variable whose
value was obtained by parsing /etc/os-release like this:

DISTRO=$(grep  "^ID=" /etc/os-release | sed "s/ID=//")

This unfortunately picks up the double-quotes, so on a CentOS system DISTRO
will be equal to '"centos"'.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
install-deps.sh