Additional cleanup

This commit is contained in:
Andrew Tomaka 2021-05-13 21:50:56 -04:00
parent 8b44538414
commit 59fb8aba56
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
2 changed files with 2 additions and 1 deletions

View file

@ -27,4 +27,5 @@ update-repo:
git pull --rebase
clean:
rm -f $$HOME/bin/,
bash remove-symlinks

View file

@ -1,7 +1,7 @@
#!/bin/bash
find $HOME -maxdepth 1 -type l | while IFS= read -r symlink; do
if readlink "$symlink" | grep -q '^dotfiles/'; then
if readlink "$symlink" | grep -q 'dotfiles'; then
echo "removing $symlink"
rm "$symlink"
fi