Skip to content

Commit 42636b5

Browse files
committed
Add PATH hint to installer
Warn when the install directory is not on PATH and suggest the export line.
1 parent 875b76e commit 42636b5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

install.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,8 @@ fi
8080

8181
echo "Installed ${BIN_NAME} to ${INSTALL_DIR}/${BIN_NAME}"
8282
echo "Run: ${BIN_NAME} --help"
83+
if [[ ":${PATH}:" != *":${INSTALL_DIR}:"* ]]; then
84+
echo "Note: ${INSTALL_DIR} is not in your PATH."
85+
echo "Add it to your shell profile, e.g.:"
86+
echo " export PATH=\"${INSTALL_DIR}:\$PATH\""
87+
fi

0 commit comments

Comments
 (0)