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
|
git pull --rebase
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
rm -f $$HOME/bin/,
|
||||||
bash remove-symlinks
|
bash remove-symlinks
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
find $HOME -maxdepth 1 -type l | while IFS= read -r symlink; do
|
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"
|
echo "removing $symlink"
|
||||||
rm "$symlink"
|
rm "$symlink"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue