deploy: clean dead topic symlinks

This commit is contained in:
Henrik Lissner 2018-05-07 17:04:01 +02:00
parent fe9e4f6216
commit a78b26c371
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

2
deploy
View file

@ -128,7 +128,7 @@ function topic-remove {
} }
function clean { function clean {
local paths; paths=( $XDG_CACHE_HOME $XDG_CONFIG_HOME $XDG_DATA_HOME $XDG_BIN_HOME ) local paths; paths=( $XDG_CACHE_HOME $XDG_CONFIG_HOME $XDG_DATA_HOME $XDG_BIN_HOME $DOTFILES_DATA )
local links; links=( ~/.*(-@DN) ${^paths}/**(-@DN)) local links; links=( ~/.*(-@DN) ${^paths}/**(-@DN))
if [[ ${#links[@]} > 1 ]]; then if [[ ${#links[@]} > 1 ]]; then
echo-info "Removing dead dotfile symlinks..." echo-info "Removing dead dotfile symlinks..."