diff --git a/scripts/packages/rpm.sh b/scripts/packages/rpm.sh index a6cdd2249..cc0690572 100755 --- a/scripts/packages/rpm.sh +++ b/scripts/packages/rpm.sh @@ -60,7 +60,8 @@ fi # from /etc/os-release if [ -z "$DIST_TAG" ] then - DIST_TAG=".${ID}${VERSION_ID%%.*}" + VERSION_ID=${VERSION_ID:-} + DIST_TAG=".${ID:-unknown}${VERSION_ID%%.*}" fi $(which rpmbuild) --clean --define "_topdir $RPM_TOP_DIR" \