diff options
Diffstat (limited to 'redhat/genrpm.sh')
-rwxr-xr-x | redhat/genrpm.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/redhat/genrpm.sh b/redhat/genrpm.sh index 9decbeb12..10f5dfbb0 100755 --- a/redhat/genrpm.sh +++ b/redhat/genrpm.sh @@ -31,7 +31,8 @@ EOF # Checks RPMBUILD environment RHEL="$( rpm -E "%{rhel}" )" FEDORA="$( rpm -E "%{fedora}" )" -if [ "${RHEL}" = "%{rhel}" ] && [ "${FEDORA}" = "%{fedora}" ]; then +SUSE="$( rpm -E "%{suse_version}" )" +if [ "${RHEL}" = "%{rhel}" ] && [ "${FEDORA}" = "%{fedora}" ] && [ "${SUSE}" = "%{suse_version}" ]; then cat <<EOF Error: RPM macro %rhel or %fedora must be set to the distribution version to build ! E.g: |