This commit is contained in:
Daniel Bauer
2020-02-20 12:04:40 +01:00
parent 683a113df7
commit 9d80238d31
10 changed files with 270 additions and 8 deletions

View File

@@ -17,9 +17,11 @@ link_profile() {
fi
cd $profile_dir
OIFS="$IFS"
IFS=$'\n'
# Find all files to link
for file in `find . -type f | cut -c 3- | grep -v "^$"`; do
dir=$(dirname "${file}")
for file in `find . -type f | cut -c 3- | grep -v "^$"`; do
dir=$(dirname "${file}")
src=`pwd`/$file
dst_dir=$HOME/$dir
dst=$HOME/$file
@@ -54,4 +56,4 @@ if [ "$1" == "link" ]; then
link_profile $1
shift
done
fi
fi