Skip to content

Commit a490d11

Browse files
committed
Check if reflex is reachable after install, show PATH hint only if not
1 parent fddb3e8 commit a490d11

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

install.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ chmod +x "${INSTALL_DIR}/reflex"
3939

4040
echo "Installed reflex ${TAG} to ${INSTALL_DIR}/reflex"
4141

42-
case ":$PATH:" in
43-
*":${INSTALL_DIR}:"*) ;;
44-
*) echo ""
45-
echo "Add ${INSTALL_DIR} to your PATH:"
46-
echo " export PATH=\"\$HOME/.local/bin:\$PATH\"" ;;
47-
esac
42+
if command -v reflex >/dev/null 2>&1; then
43+
echo "Run 'reflex --help' to get started."
44+
else
45+
echo ""
46+
echo "Add ${INSTALL_DIR} to your PATH to use reflex:"
47+
echo " export PATH=\"\$HOME/.local/bin:\$PATH\""
48+
fi

0 commit comments

Comments
 (0)