diff options
-rw-r--r-- | makefile | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -5,7 +5,6 @@ ZSH_COMP_DIR := $(HOME)/.local/share/zsh/site-functions BASH_COMP_DIR := $(HOME)/.local/share/bash-completion/completions ARCH := $(shell uname -m | sed s/aarch64/arm64/ | sed s/x86_64/amd64/ | sed s/armv7l/armv6/) -FD := $(shell command -v fd 2> /dev/null) .PHONY: interactive stow unstow clean gpg wsl @@ -35,11 +34,7 @@ unstow: # Uninstall configuration files stow --delete */ clean: # Remove all broken symbolic links from $HOME (recursivly) - ifndef FD - fd . $(HOME) --hidden --exclude $(XDG_CACHE_HOME) --type l --exec sh -c '[ -e "{}" ] || echo "rm -v {}"' || \ - else - find $(HOME) -type l -not -path '$(HOME)/.cache' -exec sh -c 'for x; do [ -e "$$x" ] || rm -v "$$x"; done' _ {} + - endif + fd . $(HOME) --hidden --exclude $(XDG_CACHE_HOME) --type l --exec sh -c '[ -e "{}" ] || rm -v {}' wsl: stow # Run WSL install script ./wsl/.local/bin/wsl-installer.sh |