diff --git a/pkg/omf/functions/index/omf.index.path.fish b/pkg/omf/functions/index/omf.index.path.fish index b7c09db..4fb66ee 100644 --- a/pkg/omf/functions/index/omf.index.path.fish +++ b/pkg/omf/functions/index/omf.index.path.fish @@ -1,5 +1,5 @@ function omf.index.path -d 'Get the path to the local package index' set -q XDG_CACHE_HOME - and echo "$XDG_CACHE_HOME/omf" - or echo "$HOME/.cache/omf" + and echo (echo $XDG_CACHE_HOME | sed 's:/*$::')"/omf" + or echo (echo $HOME | sed 's:/*$::')"/.cache/omf" end