From 22ad329e78d92953f4717c0929fe1cb5bf81e98d Mon Sep 17 00:00:00 2001 From: Ajabep Date: Tue, 18 Aug 2020 12:00:01 +0200 Subject: [PATCH] Fix `identify` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This bug was introduced in 34e25ee, merged in #22 and reported in #24. It's very strange: I tested on a Fedora, it was working, and, on a debian, it failedā€¦ Have to investigateā€¦ --- identify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/identify b/identify index 4fdca2e..9a67af2 100755 --- a/identify +++ b/identify @@ -45,4 +45,4 @@ case "$arg" in help esac -ls -1 db/*.so | xargs $tool | grep -- "$regex" | perl -n -e '/db\/(.*)\.so:.*/&&print "id $1\n"' +ls -1 db/*.so | xargs $tool | grep -- "$regex" | perl -n -e '/db\/([^ ]*)\.so/&&print "id $1\n"'