run apt-get update before apt-get install

pull/42/head
Muhammad Atif Ali 2 years ago
parent a6d59106ba
commit d93934a006
No known key found for this signature in database

@ -7,7 +7,7 @@ if
>/dev/null >/dev/null
then then
printf "$${BOLD}Installing VS Code!\n" printf "$${BOLD}Installing VS Code!\n"
output=$(curl -L "https://update.code.visualstudio.com/${VERSION}/linux-deb-x64/stable" -o /tmp/code.deb && sudo apt-get install -y /tmp/code.deb) output=$(curl -L "https://update.code.visualstudio.com/${VERSION}/linux-deb-x64/stable" -o /tmp/code.deb && sudo apt-get update && sudo apt-get install -y /tmp/code.deb)
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Failed to install VS Code: $output" echo "Failed to install VS Code: $output"
exit 1 exit 1

Loading…
Cancel
Save