Skip to content

Commit

Permalink
Update update.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mintRaven-05 authored Jul 14, 2024
1 parent 55d1a29 commit c039bcf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions update.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#!/bin/bash

if [[ "$(grep "VERSION" $HOME/.local/atlas/VERSION | cut -c 10-)" == "$(curl -s https://api.github.com/repos/mintRaven-05/Atlas/releases/latest | grep tag_name | cut -c 16-21)" ]]; then
echo ""
echo "no updates released !"
else
echo "A new version of atlas is released"
echo "Current version: $(grep "VERSION" $HOME/.local/atlas/VERSION | cut -c 10-)"
echo "Latest release: $(curl -s https://api.github.com/repos/mintRaven-05/Atlas/releases/latest | grep tag_name | cut -c 16-21)"
read -p "Do you want to install the update [y/N]: " choice
choice=${choice,,}
if [[ $choice == "" || $choice == "n" || $choice == "no" ]]; then
Expand Down

0 comments on commit c039bcf

Please sign in to comment.