~razzi/fish-functions

fec1681ea1d910c089920252926237aa7a9e09ed — Razzi Abuissa 2 months ago 775f9b1
Remove dir-exists in favor of is-dir
2 files changed, 1 insertions(+), 4 deletions(-)

D functions/dir-exists.fish
M functions/sync-repos.fish
D functions/dir-exists.fish => functions/dir-exists.fish +0 -3
@@ 1,3 0,0 @@
function dir-exists --argument dir
    test -d $dir
end

M functions/sync-repos.fish => functions/sync-repos.fish +1 -1
@@ 7,7 7,7 @@ function sync-repos
    for path in (cat ~/.repos.txt | grep -v '^#')
        set repo (echo $path | expand-home-tilde)

        if not dir-exists $repo
        if not is-dir $repo
            echo $repo not present
            continue
        end