Skip to content

Commit df96926

Browse files
committed
check when directory is non-existent
1 parent a06b01f commit df96926

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

nvimv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ _download_tag() {
138138
}
139139

140140
list_local() {
141+
if [ ! -d "$DATA_DIR/tags" ]; then
142+
return
143+
fi
141144
find "$DATA_DIR/tags" -mindepth 1 -maxdepth 1 -type d | xargs -n 1 basename
142145
}
143146

0 commit comments

Comments
 (0)