Skip to content

Commit

Permalink
fix: wsl has path_prefix set
Browse files Browse the repository at this point in the history
  • Loading branch information
shiipou committed Aug 28, 2023
1 parent 99eeead commit 776ac94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clone
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ if [[ $1 =~ $regex ]]; then
then
echo "Adding the repo to the list of repos in VSCode's project manager extension..."
# Add the repo to the list of repos
cat "$PROJECTS_FILE" | jq ". += [{\"name\": \"$repo\", \"rootPath\": \"$path\", \"paths\": [], \"tags\": [\"$user\"]}]" > "$PROJECTS_FILE.tmp"
cat "$PROJECTS_FILE" | jq ". += [{\"name\": \"$repo\", \"rootPath\": \"${path_prefix}${path}\", \"paths\": [], \"tags\": [\"$user\"]}]" > "$PROJECTS_FILE.tmp"
mv "$PROJECTS_FILE.tmp" "$PROJECTS_FILE"
fi
fi
Expand Down

0 comments on commit 776ac94

Please sign in to comment.