aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2020-03-26 18:12:39 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2020-03-26 18:12:39 +0100
commitce179249cfbe5026555f947fa6c5360526e10657 (patch)
tree2090048514bb61d451e347236b4c493143c3f79d /install.sh
parent24d81aed398339f516aca54f0c0a0e87a89cae94 (diff)
downloaddotfiles-ce179249cfbe5026555f947fa6c5360526e10657.tar.gz
dotfiles-ce179249cfbe5026555f947fa6c5360526e10657.zip
Fixed some install issues
Use the absolute path when linking... Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh4
1 files changed, 2 insertions, 2 deletions
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