Skip to content

Commit

Permalink
Make perms system agnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
kobaltcore committed Jan 23, 2024
1 parent 9bcad59 commit b985b86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renutil.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,9 @@ pub async fn install(
"Setting executable permissions for {}.",
path.to_string_lossy()
);
fs::set_permissions(path, fs::Permissions::from_mode(0o755)).unwrap();
let mut perms = fs::metadata(path)?.permissions();
perms.set_mode(0o755);
std::fs::set_permissions(path, perms)?;
}

let original_dir = env::current_dir()?;
Expand Down

0 comments on commit b985b86

Please sign in to comment.