1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-25 14:22:37 +03:00

ci: refine distroid

This commit is contained in:
Wez Furlong 2022-06-24 16:20:06 -07:00
parent 256afbecfd
commit 7a1e087b00

View File

@ -126,11 +126,12 @@ case $OSTYPE in
;;
linux-gnu|linux)
distro=$(lsb_release -is 2>/dev/null || sh -c "source /etc/os-release && echo \$NAME")
distroid=$(lsb_release -is 2>/dev/null || sh -c "source /etc/os-release && echo \$ID")
distver=$(lsb_release -rs 2>/dev/null || sh -c "source /etc/os-release && echo \$VERSION_ID")
case "$distro" in
*Fedora*|*CentOS*|*SUSE*)
WEZTERM_RPM_VERSION=$(echo ${TAG_NAME#nightly-} | tr - _)
distroid=$(sh -c "source /etc/os-release && echo \$ID")
distver=$(sh -c "source /etc/os-release && echo \$VERSION_ID")
cat > wezterm.spec <<EOF
Name: wezterm
Version: ${WEZTERM_RPM_VERSION}