Additional cleanup
This commit is contained in:
parent
8b44538414
commit
59fb8aba56
2 changed files with 2 additions and 1 deletions
1
Makefile
1
Makefile
|
@ -27,4 +27,5 @@ update-repo:
|
|||
git pull --rebase
|
||||
|
||||
clean:
|
||||
rm -f $$HOME/bin/,
|
||||
bash remove-symlinks
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue