diff options
author | Mihai Moldovan <ionic@ionic.de> | 2015-04-02 01:42:16 +0200 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2015-04-02 01:42:16 +0200 |
commit | 56b8bee5a2101bb43edbacf7c0b081509d2e638e (patch) | |
tree | cd69e33067628594a03f68190e0d76373e42ef7c | |
parent | c1b849d58553695d43dc04dd2f499ea1f6a9ccdf (diff) | |
download | buildscripts-56b8bee5a2101bb43edbacf7c0b081509d2e638e.tar.gz buildscripts-56b8bee5a2101bb43edbacf7c0b081509d2e638e.tar.bz2 buildscripts-56b8bee5a2101bb43edbacf7c0b081509d2e638e.zip |
bin/build-rpm-package: fix parse error.
-rwxr-xr-x | bin/build-rpm-package | 7 |
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 |