Skip to content

Commit

Permalink
add suporte to azure data studio update
Browse files Browse the repository at this point in the history
  • Loading branch information
wilfison committed Oct 6, 2023
1 parent ff3d275 commit 5ca9182
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/azure_data_studio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,22 @@ BASEDIR="$APPINST_BASEDIR/src"
# check if prev instaled
if which -a "azuredatastudio"; then
show_info_log "Azure Data Studio already installed!"
else
show_info_log "Downloading Azure Data Studio"
wget https://go.microsoft.com/fwlink/?linkid=2215528 -O /tmp/azuredatastudio.deb

show_info_log "Installing Azure Data Studio"
sudo apt install /tmp/azuredatastudio.deb
rm /tmp/azuredatastudio.deb
show_info_input "Would you like to update? [y:n]"
read update_app

if [ "$update_app" != 'y' ]; then
exit 0
fi
fi

show_info_log "Downloading Azure Data Studio"
wget https://azuredatastudio-update.azurewebsites.net/latest/linux-deb-x64/stable -O /tmp/azuredatastudio.deb

show_info_log "Installing Azure Data Studio"
sudo apt install /tmp/azuredatastudio.deb
rm /tmp/azuredatastudio.deb

show_info_input "Do you want to install Custom Extensions? [y:n]"
read add_extensions

Expand Down

0 comments on commit 5ca9182

Please sign in to comment.