Skip to content

Commit 4647197

Browse files
committed
fix(nvimv): ensure old nvim files are removed
1 parent 28acd0a commit 4647197

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

bin/nvimv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ _download_tag() {
130130
base_dir="$DATA_DIR/tags/$tag"
131131
tar_name="$(echo "$asset" | jq -r '.name')"
132132
mkdir -p "$base_dir"
133+
134+
# Remove old extracted files to prevent stale leftovers
135+
find "$base_dir" -mindepth 1 -maxdepth 1 -type d -exec rm -rf {} +
136+
133137
cd "$base_dir"
134138
curl -LO "$(echo "$asset" | jq -r '.browser_download_url')"
135139

0 commit comments

Comments
 (0)