From 1b65f0cfb9b8b8fa3317fca5e81ed6d30f69a1c0 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Wed, 28 Oct 2015 15:43:10 -0500 Subject: [PATCH] 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 --- ceph-build-next/build/build_rpm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5