Created
December 13, 2023 11:14
-
-
Save gusbemacbe/10f0dc21d6bbdbfed67ef6eb006a9b09 to your computer and use it in GitHub Desktop.
Downloading and installing automatically the new version of VSCode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Using wget to download VSCode archive file from the direct URL | |
wget -O vscode.tar.gz 'https://code.visualstudio.com/sha/download?build=stable&os=linux-x64' | |
# Create a directory to extract the file | |
mkdir -p vscode | |
# Extract the file | |
tar -xvf vscode.tar.gz -C vscode | |
# Rename the extracted directory | |
mv vscode/VSCode-linux-x64 "vscode/Visual Studio Code" | |
# # Removing the old directory | |
rm -rvf "$HOME/Applications/Binaries/Visual Studio Code" | |
## Moving the VScode directory... | |
mv "vscode/Visual Studio Code" "$HOME/Applications/Binaries/" | |
## Removing the files | |
rm -rv vscode.tar.gz | |
rm -rv vscode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment