Skip to content

Commit 34f072f

Browse files
committed
fix: handle binary execution error in mithril-install script
1 parent 3100d62 commit 34f072f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mithril-install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,5 +142,6 @@ tar -xz -f "$ASSETS_FILE_PATH" -C "$INSTALL_PATH" "$NODE"
142142
chmod +x "$INSTALL_PATH/$NODE"
143143
rm -f "$ASSETS_FILE_PATH"
144144

145-
VERSION=$("$INSTALL_PATH/$NODE" --version | awk '{print $NF}')
145+
VERSION_OUTPUT=$("$INSTALL_PATH/$NODE" --version)
146+
VERSION=$(echo "$VERSION_OUTPUT" | awk '{print $NF}')
146147
echo "Congrats! ${NODE} has been upgraded to ${VERSION} from distribution ${DISTRIBUTION} and installed at ${INSTALL_PATH}!"

0 commit comments

Comments
 (0)