diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2020-03-26 18:12:39 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2020-03-26 18:12:39 +0100 |
| commit | ce179249cfbe5026555f947fa6c5360526e10657 (patch) | |
| tree | 2090048514bb61d451e347236b4c493143c3f79d /install.sh | |
| parent | 24d81aed398339f516aca54f0c0a0e87a89cae94 (diff) | |
| download | dotfiles-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-x | install.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
