summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2015-04-02 01:42:16 +0200
committerMihai Moldovan <ionic@ionic.de>2015-04-02 01:42:16 +0200
commit56b8bee5a2101bb43edbacf7c0b081509d2e638e (patch)
treecd69e33067628594a03f68190e0d76373e42ef7c /bin
parentc1b849d58553695d43dc04dd2f499ea1f6a9ccdf (diff)
downloadbuildscripts-56b8bee5a2101bb43edbacf7c0b081509d2e638e.tar.gz
buildscripts-56b8bee5a2101bb43edbacf7c0b081509d2e638e.tar.bz2
buildscripts-56b8bee5a2101bb43edbacf7c0b081509d2e638e.zip
bin/build-rpm-package: fix parse error.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build-rpm-package7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 9262d40..1bb548d 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -883,7 +883,12 @@ set_vars "$@" && {
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" ] } && {
+
+ # This indentation may look weird, but is actually needed because bash expects either a semicolon or a newline
+ # between (the last) command and a closing curly brace.
+ cd "${PROJECT_DIR}" && {
+ pkgneedsbuild "${CHECKOUT}" || [ "${FORCE_BUILD}" -eq "1" ]
+ } && {
if [ "${FORCE_BUILD}" -eq "1" ] && [ "${NO_DELAY}" -eq "0" ]; then
delay_build
fi