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:
parent
256afbecfd
commit
7a1e087b00
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user