From 15cf2c561185854e93f26c44b96047e2038f2773 Mon Sep 17 00:00:00 2001 From: probonopd Date: Thu, 17 Jan 2019 23:25:36 +0000 Subject: [PATCH] Not every executable is a binary --- src/appimagetool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/appimagetool.c b/src/appimagetool.c index 6bf1f76..feaeb4c 100644 --- a/src/appimagetool.c +++ b/src/appimagetool.c @@ -398,7 +398,7 @@ void find_arch(const gchar *real_path, const gchar *pattern, bool* archs) { if (g_file_test(full_name, G_FILE_TEST_IS_SYMLINK)) { } else if (g_file_test(full_name, G_FILE_TEST_IS_DIR)) { find_arch(full_name, pattern, archs); - } else if (g_file_test(full_name, G_FILE_TEST_IS_EXECUTABLE) || g_pattern_match_simple(pattern, entry) ) { + } else if (g_file_test(g_pattern_match_simple(pattern, entry))) { guess_arch_of_file(full_name, archs); } } -- 2.11.4.GIT