Skip to content

Commit 1344248

Browse files
committed
fix(integration): fix check for no desktop integration note
1 parent 03d67be commit 1344248

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

soar-cli/src/utils.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ pub fn select_package_interactively<T: PackageExt>(
8080

8181
pub fn has_no_desktop_integration(repo_name: &str, notes: Option<&[String]>) -> bool {
8282
!get_config().has_desktop_integration(repo_name)
83-
|| notes.is_some_and(|all| all.iter().any(|note| note == "NO_DESKTOP_INTEGRATION"))
83+
|| notes.is_some_and(|all| {
84+
all.iter()
85+
.any(|note| note.contains("NO_DESKTOP_INTEGRATION"))
86+
})
8487
}
8588

8689
pub fn pretty_package_size(ghcr_size: Option<u64>, size: Option<u64>) -> String {

0 commit comments

Comments
 (0)