1
0
mirror of https://github.com/jht5945/buildj.git synced 2025-12-27 17:20:06 +08:00

add BUILDJ_AUTH_TOKEN

This commit is contained in:
2019-09-07 17:02:19 +08:00
parent b5a1556061
commit 22fbd6b789

View File

@@ -146,6 +146,9 @@ pub fn get_extract_dir_name_by_file_name(file_name: &str) -> Option<String> {
pub fn get_tool_package_secret() -> XResult<String> {
if (*AUTH_TOKEN).is_some() {
if *VERBOSE {
print_message(MessageType::DEBUG, "Use auth token from env 'BUILDJ_AUTH_TOKEN'");
}
return Ok((*AUTH_TOKEN).as_ref().unwrap().clone());
}