Skip to content

Commit 68ea0e2

Browse files
committed
feat: force upgrade on v1.7.9
1 parent e4bf1bc commit 68ea0e2

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

availup.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ if [ ! -z "$upgrade" ]; then
113113
echo "🔄 Checking for updates..."
114114
if [ -f $AVAIL_BIN ]; then
115115
CURRENT_VERSION="v$($HOME/.avail/bin/avail-light --version | cut -d " " -f 2)"
116-
if [ "$CURRENT_VERSION" != "$VERSION" ]; then
116+
if [ "$CURRENT_VERSION" = "v1.7.9" ]; then
117+
UPGRADE=1
118+
echo "⬆️ Avail binary is out of date. Upgrading..."
119+
elif [ "$CURRENT_VERSION" != "$VERSION" ]; then
117120
UPGRADE=1
118121
echo "⬆️ Avail binary is out of date. Upgrading..."
119122
else
@@ -123,6 +126,14 @@ if [ ! -z "$upgrade" ]; then
123126
fi
124127
fi
125128
fi
129+
else
130+
if [ -f $AVAIL_BIN ]; then
131+
CURRENT_VERSION="v$($HOME/.avail/bin/avail-light --version | cut -d " " -f 2)"
132+
if [ "$CURRENT_VERSION" = "v1.7.9" ]; then
133+
UPGRADE=1
134+
echo "⬆️ Avail binary is out of date. Upgrading..."
135+
fi
136+
fi
126137
fi
127138

128139
onexit() {

0 commit comments

Comments
 (0)