deploy: clean dead topic symlinks
This commit is contained in:
parent
fe9e4f6216
commit
a78b26c371
2
deploy
2
deploy
|
@ -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..."
|
||||||
|
|
Loading…
Reference in a new issue