summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Cline <jcline@redhat.com>2019-10-03 14:45:04 +0000
committerJeremy Cline <jcline@redhat.com>2019-10-03 14:47:37 +0000
commit8f4ffa992590c8e4db0bf067e1db112c17c21065 (patch)
treefd83f46629f3bf8d6c71bd8539a11e5b0fbac8d5
parentdedd91c9bf3e9bc7f455062f52559d4df4d2d62f (diff)
downloadkernel-8f4ffa992590c8e4db0bf067e1db112c17c21065.tar.gz
kernel-8f4ffa992590c8e4db0bf067e1db112c17c21065.tar.xz
kernel-8f4ffa992590c8e4db0bf067e1db112c17c21065.zip
Fix the header tarball script BUILDID addition
[ -n ] doesn't work on unquoted variables. The variable either needs to get quoted or use [[ ]]. Without this the script always defines buildid. Signed-off-by: Jeremy Cline <jcline@redhat.com>
-rwxr-xr-xscripts/create_headers_tarball.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/create_headers_tarball.sh b/scripts/create_headers_tarball.sh
index 3325d1318..9a59f03a5 100755
--- a/scripts/create_headers_tarball.sh
+++ b/scripts/create_headers_tarball.sh
@@ -72,7 +72,7 @@ BASERELEASE=$(($BASERELEASE-1))
BASERELEASE=$BASERELEASE perl -p -i -e 's|%global baserelease.*|%global baserelease $ENV{'BASERELEASE'}|' kernel-headers.spec
if [ $RELEASED -eq 0 ]; then
- [ -n $BUILDID ] && sed -i -e 's/^# define buildid .local/%define buildid '$BUILDID'/' kernel-headers.spec
+ [ -n "$BUILDID" ] && sed -i -e 's/^# define buildid .local/%define buildid '$BUILDID'/' kernel-headers.spec
RC=$RC perl -p -i -e 's|%global rcrev.*|%global rcrev $ENV{'RC'}|' kernel-headers.spec
GITREV=$GITREV perl -p -i -e 's|%define gitrev.*|%define gitrev $ENV{'GITREV'}|' kernel-headers.spec
rpmdev-bumpspec -c "Linux v$MAJORVER.$NEWBASE-rc$RC.git$GITREV" kernel-headers.spec