Skip to content

Commit

Permalink
feat: minor change in update of edge
Browse files Browse the repository at this point in the history
  • Loading branch information
AyushSehrawat committed Apr 19, 2023
1 parent 8cccb0b commit a142545
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions neurons/edge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ case "$1" in
VERSION_URL=$(curl -s https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-stable/ | grep -o '<a href="[^"]*deb"' | grep -o '[^"]*deb' | sort -V | tail -n 1)
LATEST_WEB_VERSION=$(basename "$VERSION_URL" | grep -oP "(?<=microsoft-edge-stable_)\d+(\.\d+)+(-\d+)?")
LATEST_LOCAL_VERSION=$(dpkg -s microsoft-edge-stable | grep Version | awk '{print $2}')
elif [ -x "$(command -v rpm)" ]; then
echo "Soon..."
exit 1
fi
echo "Latest web version: $LATEST_WEB_VERSION"
echo "Latest local version: $LATEST_LOCAL_VERSION"
Expand Down

0 comments on commit a142545

Please sign in to comment.