Skip to content

Instantly share code, notes, and snippets.

@briverse17
Last active July 22, 2024 02:57
Show Gist options
  • Save briverse17/f0f5917bc059004ccc8c67f69ecd403a to your computer and use it in GitHub Desktop.
Save briverse17/f0f5917bc059004ccc8c67f69ecd403a to your computer and use it in GitHub Desktop.
DOWNLOAD_DIR="/tmp"
DOWNLOAD_URL="https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64"
echo "Getting stable VSCode .deb distribution"
wget -q --show-progress -nc -O "$DOWNLOAD_DIR/code_stable.deb" "$DOWNLOAD_URL"
if [ -f "$DOWNLOAD_DIR/code_stable.deb" ]; then
echo "Installing stable VSCode"
apt install "$DOWNLOAD_DIR/code_stable.deb/"
echo "Cleaning up..."
rm "$DOWNLOAD_DIR/code_stable.deb"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment