From e0d64f45c7f3679ea5b47c65dd979e666299cad2 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Mon, 15 Apr 2019 19:12:01 +0700 Subject: [PATCH] Fix hushd to work when called via symlink --- src/hushd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hushd b/src/hushd index 434b213ae..78482f3ed 100755 --- a/src/hushd +++ b/src/hushd @@ -2,7 +2,7 @@ # Copyright (c) 2019 Hush developers # set working directory to the location of this script -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +DIR="$( cd "$( dirname "$( readlink -f "${BASH_SOURCE[0]}" )" )" && pwd )" cd $DIR NAME=HUSH3