From 5512cfc6f343633b885e606084f78c717fd6b8c1 Mon Sep 17 00:00:00 2001 From: xtrm0 Date: Tue, 13 Sep 2016 02:14:42 +0100 Subject: [PATCH] Gets the physical script path in case of link --- searchsploit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searchsploit b/searchsploit index cef096e83..a75063ae2 100755 --- a/searchsploit +++ b/searchsploit @@ -12,7 +12,7 @@ ## OS settings (get the path of where the script is stored + database file) -gitpath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +gitpath="$( cd "$( dirname "$(realpath ${BASH_SOURCE[0]})" )" && pwd)" csvpath="${gitpath}/files.csv"