]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
do not assign get_rpm_dist to a var so that all globals are available
authorAndrew Schoen <aschoen@redhat.com>
Wed, 28 Oct 2015 20:43:10 +0000 (15:43 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 28 Oct 2015 20:43:10 +0000 (15:43 -0500)
If you assign the value of get_rpm_dist to a variable, the other global
variables created in that method are not available to use

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-build-next/build/build_rpm

index 41f9b996f55b1eafb113eab52c0b52c9e2b58b73..12116e91839674650202d80f8177d2803cc9fb75 100644 (file)
@@ -50,7 +50,8 @@ get_rpm_dist() {
     echo $DIST
 }
 
-dist=`get_rpm_dist`
+get_rpm_dist
+dist=$DIST
 [ -z "$dist" ] && echo no dist && exit 1
 echo dist $dist