Skip to content

Commit 9d6bb96

Browse files
committed
Run thv version to verify installation
Signed-off-by: Dan Barr <[email protected]>
1 parent 2ad5d92 commit 9d6bb96

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/install-thv.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,9 @@ chmod +x /tmp/thv
6767
cp /tmp/thv "$INSTALL_DIR/thv"
6868
rm -f /tmp/toolhive.tar.gz /tmp/thv
6969

70-
echo "ToolHive CLI (thv) installed successfully. Version: $RELEASE_VERSION"
71-
echo "The 'thv' command is now available in your PATH."
70+
thv version || {
71+
echo "Installation failed: 'thv' command is not working."
72+
exit 1
73+
}
74+
75+
echo "ToolHive CLI (thv) installed successfully."

0 commit comments

Comments
 (0)