From 9f4800b3a001659680f38cd3b661ef1f62018969 Mon Sep 17 00:00:00 2001 From: Botspot <54716352+Botspot@users.noreply.github.com> Date: Tue, 23 Mar 2021 11:05:59 -0500 Subject: [PATCH] cd home before setting directory variable --- install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install b/install index 7cd4edd..4b21f68 100755 --- a/install +++ b/install @@ -5,10 +5,10 @@ function error { exit 1 } -DIRECTORY="$(readlink -f "$(dirname "$0")")" - cd $HOME +DIRECTORY="$(readlink -f "$(dirname "$0")")" + #install yad automatically if ! command -v yad >/dev/null;then