Consider CI_TAG= to be the same as unset CI_TAG

This commit is contained in:
Michael Vines
2019-11-18 23:42:51 -07:00
parent 7ccc029f77
commit e22f89853f

View File

@ -4,7 +4,7 @@ macro_rules! version {
&*format!(
"{}{}",
env!("CARGO_PKG_VERSION"),
if option_env!("CI_TAG").is_none() {
if option_env!("CI_TAG").unwrap_or("").is_empty() {
format!(
" [channel={} commit={}]",
option_env!("CHANNEL").unwrap_or("unknown"),