From 384e43929638f3c6b2c9077b4e35069a284890d1 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Wed, 7 Aug 2019 17:37:44 -0700 Subject: [PATCH] Fixes issue #8 --- src/hushd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hushd b/src/hushd index ec57d46e3..046dbaddb 100755 --- a/src/hushd +++ b/src/hushd @@ -2,7 +2,10 @@ # Copyright (c) 2019 Hush developers # set working directory to the location of this script -DIR="$( cd "$( dirname "$( readlink -f "${BASH_SOURCE[0]}" )" )" && pwd )" +# readlink -f does not always exist +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +cd $DIR +DIR="$( cd "$( dirname "$( readlink "${BASH_SOURCE[0]}" )" )" && pwd )" cd $DIR NAME=HUSH3