We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28acd0a commit 4647197Copy full SHA for 4647197
1 file changed
bin/nvimv
@@ -130,6 +130,10 @@ _download_tag() {
130
base_dir="$DATA_DIR/tags/$tag"
131
tar_name="$(echo "$asset" | jq -r '.name')"
132
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
137
cd "$base_dir"
138
curl -LO "$(echo "$asset" | jq -r '.browser_download_url')"
139
0 commit comments