summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2015-04-02 01:41:57 +0200
committerMihai Moldovan <ionic@ionic.de>2015-04-02 01:41:57 +0200
commitc1b849d58553695d43dc04dd2f499ea1f6a9ccdf (patch)
treed76f41384753a46382996d111998a770d3795cf9
parent9ff437544fb9b2a0619bf4f21bf85bdd8ef9d9b0 (diff)
downloadbuildscripts-c1b849d58553695d43dc04dd2f499ea1f6a9ccdf.tar.gz
buildscripts-c1b849d58553695d43dc04dd2f499ea1f6a9ccdf.tar.bz2
buildscripts-c1b849d58553695d43dc04dd2f499ea1f6a9ccdf.zip
bin/build-rpm-package: use more curly braces.
-rwxr-xr-xbin/build-rpm-package5
1 files changed, 2 insertions, 3 deletions
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