Since I cannot sadly use command code that is an external command provided by VS Code, I thought I would pass in a variable from a shell script however I don't get how I can do it. I read the wiki on shell scripts and found nothing there.
I tried to 'save results to clipboard' of that shell script however it has the annoying logging of 'cloned repo' which I do not need. Is there some way I can extract a variable from a shell script?
And then the last line of the script output (which is currently on the clipboard) will be the path (probably you want to change the output to be a variable instead of the System Clipboard). Extract the last line from that using a regex or For Each with the Lines collection.
Alternatively, you need to get the $dest_dir outside the single quotes, something like: