Skip to content

Commit d16fd29

Browse files
authored
Merge pull request #2481 from input-output-hk/dlachaume/improve-error-handling-in-download-binary-script
Fix: improve error handling in `mithril-install` script
2 parents 3100d62 + 34f072f commit d16fd29

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)