From: Andrew Schoen Date: Wed, 28 Oct 2015 20:43:10 +0000 (-0500) Subject: do not assign get_rpm_dist to a var so that all globals are available X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1b65f0cfb9b8b8fa3317fca5e81ed6d30f69a1c0;p=ceph-build.git do not assign get_rpm_dist to a var so that all globals are available 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 --- diff --git a/ceph-build-next/build/build_rpm b/ceph-build-next/build/build_rpm index 41f9b996..12116e91 100644 --- a/ceph-build-next/build/build_rpm +++ b/ceph-build-next/build/build_rpm @@ -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