]> jfr.im git - irc/weechat/weechat.git/commitdiff
core: double quote $JOBS
authorSébastien Helleu <redacted>
Wed, 4 Jan 2023 20:46:44 +0000 (21:46 +0100)
committerSébastien Helleu <redacted>
Wed, 4 Jan 2023 21:23:33 +0000 (22:23 +0100)
This fixes the following shellcheck error:

SC2086 (info): Double quote to prevent globbing and word splitting.

tools/build-debian.sh

index eb5afa799d4f51a111936f272a4477627acdd272..1469612ae53fec8d40d45f036cb1d546c9cd19db 100755 (executable)
@@ -247,7 +247,7 @@ echo " - Updating changelog: ${DEB_NAME} ${DEB_VERSION} (${DCH_DISTRO}, ${DCH_UR
 DEBFULLNAME="${PACKAGER_NAME}" DEBEMAIL="${PACKAGER_EMAIL}" dch "${DCH_CREATE}" --package "${DEB_NAME}" --newversion "${DEB_VERSION}" --distribution "${DCH_DISTRO}" --urgency "${DCH_URGENCY}" "${DCH_CHANGELOG}"
 
 # build packages (without debug symbols)
-DEB_BUILD_OPTIONS="noddebs" dpkg-buildpackage -us -uc -j${JOBS} --source-option="--tar-ignore=.git" --source-option="--tar-ignore=build*"
+DEB_BUILD_OPTIONS="noddebs" dpkg-buildpackage -us -uc --jobs="${JOBS}" --source-option="--tar-ignore=.git" --source-option="--tar-ignore=build*"
 
 # all OK!
 echo " - Build OK [${DEB_NAME}-${DEB_VERSION}]"