Skip to content

Commit 5db72da

Browse files
authored
Merge pull request #19 from grooverdan/empty-os-release
build: empty /etc/os-release
2 parents 19ce469 + 101ab7e commit 5db72da

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/packages/rpm.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ fi
6060
# from /etc/os-release
6161
if [ -z "$DIST_TAG" ]
6262
then
63-
DIST_TAG=".${ID}${VERSION_ID%%.*}"
63+
VERSION_ID=${VERSION_ID:-}
64+
DIST_TAG=".${ID:-unknown}${VERSION_ID%%.*}"
6465
fi
6566

6667
$(which rpmbuild) --clean --define "_topdir $RPM_TOP_DIR" \

0 commit comments

Comments
 (0)