Skip to content

Commit bbaa951

Browse files
committed
[rust] Improve logic for handling unstable edge bad links
1 parent cd717a7 commit bbaa951

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/src/files.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,9 @@ pub fn uncompress_deb(
322322
let zip_parent_str = path_to_string(zip_parent);
323323
let opt_edge_str = format!("{}/opt/microsoft/{}", zip_parent_str, label);
324324

325-
// Exception due to bad symbolic link in msedge-beta
325+
// Exception due to bad symbolic link in unstable distributions. For example:
326326
// microsoft-edge -> /opt/microsoft/msedge-beta/microsoft-edge-beta
327-
if label.eq("msedge-beta") {
327+
if !label.eq("msedge") {
328328
let link = format!("{}/microsoft-edge", opt_edge_str);
329329
fs::remove_file(Path::new(&link)).unwrap_or_default();
330330
}

0 commit comments

Comments
 (0)