We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecb4f04 commit fddb3e8Copy full SHA for fddb3e8
install.sh
@@ -38,6 +38,10 @@ curl -sL "$URL" -o "${INSTALL_DIR}/reflex"
38
chmod +x "${INSTALL_DIR}/reflex"
39
40
echo "Installed reflex ${TAG} to ${INSTALL_DIR}/reflex"
41
-echo ""
42
-echo "Make sure ${INSTALL_DIR} is in your PATH:"
43
-echo " export PATH=\"\$HOME/.local/bin:\$PATH\""
+
+case ":$PATH:" in
+ *":${INSTALL_DIR}:"*) ;;
44
+ *) echo ""
45
+ echo "Add ${INSTALL_DIR} to your PATH:"
46
+ echo " export PATH=\"\$HOME/.local/bin:\$PATH\"" ;;
47
+esac
0 commit comments