Commit
b0d187aaf22eb01804a27ddf6688a1fca1f9f96a changed the OS-type
derivation logic from "based on hostname" to a heuristic based on the
files on the system itself.
The conditional for detecting RHEL was inverted. If we *do* have a
/etc/redhat-release file, we want to build RPMs. Update the conditional
to reflect this.
fi
}
-if [[ ! -f /etc/redhat-release && is_suse -eq 1 ]] ; then
+if [[ -f /etc/redhat-release && is_suse -eq 1 ]] ; then
rm -rf ./dist # Remove any previous artifacts
mkdir -p $WORKSPACE/dist/noarch
mkdir -p $WORKSPACE/dist/SRPMS