mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
vscode-extensions: some tweaks to comments (#100282)
This commit is contained in:
parent
5d55162e2a
commit
32cf0e38a1
1 changed files with 4 additions and 4 deletions
|
@ -8,7 +8,7 @@ function fail() {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
# Helper to clean up after ourself if we're killed by SIGINT
|
# Helper to clean up after ourselves if we're killed by SIGINT.
|
||||||
function clean_up() {
|
function clean_up() {
|
||||||
TDIR="${TMPDIR:-/tmp}"
|
TDIR="${TMPDIR:-/tmp}"
|
||||||
echo "Script killed, cleaning up tmpdirs: $TDIR/vscode_exts_*" >&2
|
echo "Script killed, cleaning up tmpdirs: $TDIR/vscode_exts_*" >&2
|
||||||
|
@ -18,7 +18,7 @@ function clean_up() {
|
||||||
function get_vsixpkg() {
|
function get_vsixpkg() {
|
||||||
N="$1.$2"
|
N="$1.$2"
|
||||||
|
|
||||||
# Create a tempdir for the extension download
|
# Create a tempdir for the extension download.
|
||||||
EXTTMP=$(mktemp -d -t vscode_exts_XXXXXXXX)
|
EXTTMP=$(mktemp -d -t vscode_exts_XXXXXXXX)
|
||||||
|
|
||||||
URL="https://$1.gallery.vsassets.io/_apis/public/gallery/publisher/$1/extension/$2/latest/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage"
|
URL="https://$1.gallery.vsassets.io/_apis/public/gallery/publisher/$1/extension/$2/latest/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage"
|
||||||
|
@ -32,7 +32,7 @@ function get_vsixpkg() {
|
||||||
|
|
||||||
# Clean up.
|
# Clean up.
|
||||||
rm -Rf "$EXTTMP"
|
rm -Rf "$EXTTMP"
|
||||||
# I don't like 'rm -Rf' lurking in my scripts but this seems appropriate
|
# I don't like 'rm -Rf' lurking in my scripts but this seems appropriate.
|
||||||
|
|
||||||
cat <<-EOF
|
cat <<-EOF
|
||||||
{
|
{
|
||||||
|
@ -44,7 +44,7 @@ function get_vsixpkg() {
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
# See if can find our code binary somewhere.
|
# See if we can find our `code` binary somewhere.
|
||||||
if [ $# -ne 0 ]; then
|
if [ $# -ne 0 ]; then
|
||||||
CODE=$1
|
CODE=$1
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue