]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
takora: fix os string comparison
authorKen Dreyer <kdreyer@redhat.com>
Thu, 27 Aug 2015 22:32:51 +0000 (16:32 -0600)
committerKen Dreyer <kdreyer@redhat.com>
Thu, 27 Aug 2015 22:33:37 +0000 (16:33 -0600)
In bash, strings compare with "==" not "-eq"

And /etc/os-release's ID is "ubuntu" not "Ubuntu"

takora/build/build

index 7b00837d0d8b24cbbaa6f1e44608bac783825c7a..b13b101bf661a67ad2d24211311ed294dd706add 100644 (file)
@@ -7,7 +7,7 @@ cd $WORKSPACE/takora
 
 DEBIAN=0
 
-if [ "$ID" -eq 'Ubuntu' ] ; then
+if [ "$ID" == 'ubuntu' ] ; then
     DEBIAN=1
 fi