portage-conf/link.sh

12 lines
224 B
Bash
Raw Normal View History

2020-07-03 11:21:03 +03:00
#!/bin/sh
files=($(ls $PWD))
dest="/etc/portage/"
for file in "${files[@]}"; do
# Ignore link.sh
2020-11-24 14:24:42 +02:00
if [ "$file" != "link.sh" -a "$file" != "LICENSE" -a "$file" != "README.md" ]; then
2020-07-03 11:21:03 +03:00
ln -sf "$PWD/$file" "$dest"
fi
done