summaryrefslogtreecommitdiffstats
path: root/redhat/genrpm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/genrpm.sh')
-rwxr-xr-xredhat/genrpm.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/redhat/genrpm.sh b/redhat/genrpm.sh
index b575f93cb..c16c7ab1f 100755
--- a/redhat/genrpm.sh
+++ b/redhat/genrpm.sh
@@ -94,7 +94,7 @@ case "${COMP##*/}" in
esac
# Determines if we are running an i386 or x86_64 distro
-if [ "$(rpm -q --qf '%{arch}' kernel)" = "i686" ]; then
+if [ "$(rpm -q --qf '%{arch}\n' kernel | tail -n 1)" = "i686" ]; then
ARGS="${ARGS} --target=i686"
fi