Fix leftover trash

This commit is contained in:
Augusto Gunsch 2021-08-20 14:44:27 -03:00
parent 757cf2432f
commit 57f4acf73f
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
1 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@ set -e
cd "$(dirname "$0")"
PWD="$(pwd)"
#dir to
clone_dir() {
local dir=${1:-home}
local to=${2:-$HOME}
@ -13,7 +12,7 @@ clone_dir() {
if [ -d "$f" ]; then
clone_dir "$f" "$to"
elif [ -f "$f" ]; then
ln -sf '$PWD/$f' -> '$to/.${f#home/}'
ln -sf '$PWD/$f' '$to/.${f#home/}'
fi
done
}