From ce179249cfbe5026555f947fa6c5360526e10657 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 26 Mar 2020 18:12:39 +0100 Subject: Fixed some install issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the absolute path when linking... Signed-off-by: Miquel Sabaté Solà --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index e9351bc..9abde85 100755 --- a/install.sh +++ b/install.sh @@ -45,7 +45,7 @@ done for file in $(find "$(pwd)" -mindepth 1 -maxdepth 1 ! \( $ignore \)); do # The -F and -f flags of ln suck. Let's rm all the way. rm -rf "${HOME:?}/$(basename $file)" - ln -s "$file" "${HOME:?}/$(basename $file)" + ln -s "$(readlink -f $file)" "${HOME:?}/$(basename $file)" done ## @@ -53,7 +53,7 @@ done # Link the global.gitignore file rm "${HOME:?}/.gitignore" -ln -s global.gitignore "${HOME:?}/.gitignore" +ln -s $(readlink -f global.gitignore) "${HOME:?}/.gitignore" # Copy entries of some of the directories inside of maybe existing ones. for i in Images .config .gnupg; do -- cgit v1.2.3