Skip to content

Commit

Permalink
feat: force upgrade on v1.7.9
Browse files Browse the repository at this point in the history
  • Loading branch information
QEDK committed Apr 2, 2024
1 parent e4bf1bc commit 68ea0e2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion availup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ if [ ! -z "$upgrade" ]; then
echo "🔄 Checking for updates..."
if [ -f $AVAIL_BIN ]; then
CURRENT_VERSION="v$($HOME/.avail/bin/avail-light --version | cut -d " " -f 2)"
if [ "$CURRENT_VERSION" != "$VERSION" ]; then
if [ "$CURRENT_VERSION" = "v1.7.9" ]; then
UPGRADE=1
echo "⬆️ Avail binary is out of date. Upgrading..."
elif [ "$CURRENT_VERSION" != "$VERSION" ]; then
UPGRADE=1
echo "⬆️ Avail binary is out of date. Upgrading..."
else
Expand All @@ -123,6 +126,14 @@ if [ ! -z "$upgrade" ]; then
fi
fi
fi
else
if [ -f $AVAIL_BIN ]; then
CURRENT_VERSION="v$($HOME/.avail/bin/avail-light --version | cut -d " " -f 2)"
if [ "$CURRENT_VERSION" = "v1.7.9" ]; then
UPGRADE=1
echo "⬆️ Avail binary is out of date. Upgrading..."
fi
fi
fi

onexit() {
Expand Down

0 comments on commit 68ea0e2

Please sign in to comment.