update resolver
This commit is contained in:
@@ -82,14 +82,6 @@ pub fn resolve_file(script_file: &str) -> XResult<String> {
|
|||||||
if let Err(_) = fs::write(&cache_file_path_url, script_file) {
|
if let Err(_) = fs::write(&cache_file_path_url, script_file) {
|
||||||
// JUST IGNORE
|
// JUST IGNORE
|
||||||
}
|
}
|
||||||
// change script file permission
|
|
||||||
debugging!("Write file: {} success", cache_file_path);
|
|
||||||
match fs::set_permissions(&cache_file_path, PermissionsExt::from_mode(0o755)) {
|
|
||||||
Err(e) => {
|
|
||||||
return simple_error!("Chmod script: {} permission failed: {}", cache_file_path, e)
|
|
||||||
}
|
|
||||||
Ok(_) => debugging!("Chmod script: {} permission succeed", cache_file_path),
|
|
||||||
}
|
|
||||||
|
|
||||||
Ok(cache_file_path)
|
Ok(cache_file_path)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user