Skip to content

Commit

Permalink
fix: fixed conditional statement in edge update
Browse files Browse the repository at this point in the history
  • Loading branch information
AyushSehrawat committed Apr 19, 2023
1 parent 7de9b4c commit 8cccb0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neurons/edge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ case "$1" in
;;
-update)
echo "Updating package..."
if [ "$ARCH" = "amd64" ]; then
if [ -x "$(command -v dpkg)" ]; then
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}')
Expand Down

0 comments on commit 8cccb0b

Please sign in to comment.