We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fddb3e8 commit a490d11Copy full SHA for a490d11
install.sh
@@ -39,9 +39,10 @@ chmod +x "${INSTALL_DIR}/reflex"
39
40
echo "Installed reflex ${TAG} to ${INSTALL_DIR}/reflex"
41
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
+if command -v reflex >/dev/null 2>&1; then
+ echo "Run 'reflex --help' to get started."
+else
+ echo ""
+ echo "Add ${INSTALL_DIR} to your PATH to use reflex:"
+ echo " export PATH=\"\$HOME/.local/bin:\$PATH\""
48
+fi
0 commit comments