Skip to content

Commit 15cf2c5

Browse files
authored
Not every executable is a binary
1 parent 990b753 commit 15cf2c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/appimagetool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ void find_arch(const gchar *real_path, const gchar *pattern, bool* archs) {
398398
if (g_file_test(full_name, G_FILE_TEST_IS_SYMLINK)) {
399399
} else if (g_file_test(full_name, G_FILE_TEST_IS_DIR)) {
400400
find_arch(full_name, pattern, archs);
401-
} else if (g_file_test(full_name, G_FILE_TEST_IS_EXECUTABLE) || g_pattern_match_simple(pattern, entry) ) {
401+
} else if (g_file_test(g_pattern_match_simple(pattern, entry))) {
402402
guess_arch_of_file(full_name, archs);
403403
}
404404
}

0 commit comments

Comments
 (0)