From 033af0c3253708298227fa48699cdc46996fd4e1 Mon Sep 17 00:00:00 2001 From: g0tmi1k Date: Fri, 11 Nov 2022 00:36:33 +0000 Subject: [PATCH] File may not be installed --- searchsploit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searchsploit b/searchsploit index 09582b173..d6a71fec6 100755 --- a/searchsploit +++ b/searchsploit @@ -905,7 +905,7 @@ if [[ "${GETPATH}" -eq 1 ]]; then fi ## File type - fileinfo="$( file -b "${location}" )" + fileinfo="$( file -b "${location}" 2>/dev/null || echo "" )" ## How long is the name? PADDING=$(( 9 - ${#name} ))