dotfiles/unlink.sh

10 lines
251 B
Bash
Raw Normal View History

2023-08-23 06:14:56 +02:00
#!/bin/sh
2023-08-23 06:36:14 +02:00
for linkfile in ${@:-$(find .dotfiles -type f -name *-links)}; do
2023-08-23 06:14:56 +02:00
echo "# processing linkfile $linkfile..."
for link in $(cat $linkfile); do
echo "# unlinking $link..."
unlink $link
done
rm -rf $linkfile
done