From c1b849d58553695d43dc04dd2f499ea1f6a9ccdf Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Thu, 2 Apr 2015 01:41:57 +0200 Subject: bin/build-rpm-package: use more curly braces. --- bin/build-rpm-package | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/build-rpm-package b/bin/build-rpm-package index 0fda18c..9262d40 100755 --- a/bin/build-rpm-package +++ b/bin/build-rpm-package @@ -880,11 +880,10 @@ delay_build() { ### MAIN ### set_vars "$@" && { - if [ "x$(basename $0)" = "x$PREFIX-build-rpm-package" ] || [ "x$(basename $0)" = "x$PREFIX-build+upload-rpm-package" ]; then - # Treat any value other than "no" and "0" as true. + if [ "x$(basename $0)" = "x${PREFIX}-build-rpm-package" ] || [ "x$(basename $0)" = "x${PREFIX}-build+upload-rpm-package" ]; then FORCE_BUILD="$(make_boolean "${FORCE_BUILD}")" NO_DELAY="$(make_boolean "${NO_DELAY}")" - cd $PROJECT_DIR && { pkgneedsbuild $CHECKOUT || [ "${FORCE_BUILD}" -eq "1" ] } && { + cd ${PROJECT_DIR} && { pkgneedsbuild ${CHECKOUT} || [ "${FORCE_BUILD}" -eq "1" ] } && { if [ "${FORCE_BUILD}" -eq "1" ] && [ "${NO_DELAY}" -eq "0" ]; then delay_build fi -- cgit v1.2.3