Skip to content

Commit f5f981b

Browse files
committed
empty data
1 parent aeefb2f commit f5f981b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/standalone/binary.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ pub fn is_standalone_binary(exe_path: &Path) -> bool {
180180
let Ok(data) = std::fs::read(exe_path) else {
181181
return false;
182182
};
183-
dbg!(&data[0..5], libsui::utils::is_macho(&data));
184183
libsui::utils::is_elf(&data)
185184
|| libsui::utils::is_pe(&data)
186185
|| libsui::utils::is_macho(&data)
186+
|| data.is_empty()
187187
}
188188

189189
pub struct WriteBinOptions<'a> {

0 commit comments

Comments
 (0)