File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff 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
126137fi
127138
128139onexit () {
You can’t perform that action at this time.
0 commit comments