chore: bun fmt
This commit is contained in:
parent
05e6324e41
commit
c5f6a00851
@ -262,9 +262,9 @@ install_extension_vsix() {
|
|||||||
local tmp_dir="/tmp/ext-$ext_id"
|
local tmp_dir="/tmp/ext-$ext_id"
|
||||||
|
|
||||||
if command -v curl > /dev/null 2>&1; then
|
if command -v curl > /dev/null 2>&1; then
|
||||||
curl -fsSL "$vsix_url" -o "$tmp_vsix" 2>/dev/null
|
curl -fsSL "$vsix_url" -o "$tmp_vsix" 2> /dev/null
|
||||||
elif command -v wget > /dev/null 2>&1; then
|
elif command -v wget > /dev/null 2>&1; then
|
||||||
wget -q "$vsix_url" -O "$tmp_vsix" 2>/dev/null
|
wget -q "$vsix_url" -O "$tmp_vsix" 2> /dev/null
|
||||||
else
|
else
|
||||||
echo "Failed to install extension $ext_id: neither curl nor wget available"
|
echo "Failed to install extension $ext_id: neither curl nor wget available"
|
||||||
return 1
|
return 1
|
||||||
@ -278,7 +278,7 @@ install_extension_vsix() {
|
|||||||
# Extract VSIX (it's a ZIP file)
|
# Extract VSIX (it's a ZIP file)
|
||||||
rm -rf "$tmp_dir"
|
rm -rf "$tmp_dir"
|
||||||
mkdir -p "$tmp_dir"
|
mkdir -p "$tmp_dir"
|
||||||
if ! unzip -q "$tmp_vsix" -d "$tmp_dir" 2>/dev/null; then
|
if ! unzip -q "$tmp_vsix" -d "$tmp_dir" 2> /dev/null; then
|
||||||
echo "Failed to extract extension: $ext_id"
|
echo "Failed to extract extension: $ext_id"
|
||||||
rm -f "$tmp_vsix"
|
rm -f "$tmp_vsix"
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user