We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bf6153 commit 7c75e17Copy full SHA for 7c75e17
install.sh
@@ -56,12 +56,15 @@ else
56
fi
57
58
# Check if install directory is in PATH
59
-if [[ ":$PATH:" != *":$INSTALL_DIR:"* ]]; then
60
- echo ""
61
- echo "Warning: $INSTALL_DIR is not in your PATH"
62
- echo "Add it to your PATH by adding this line to your shell profile:"
63
- echo " export PATH=\"\$PATH:$INSTALL_DIR\""
64
-fi
+case ":$PATH:" in
+ *":$INSTALL_DIR:"*) ;;
+ *)
+ echo ""
+ echo "Warning: $INSTALL_DIR is not in your PATH"
+ echo "Add it to your PATH by adding this line to your shell profile:"
65
+ echo " export PATH=\"\$PATH:$INSTALL_DIR\""
66
+ ;;
67
+esac
68
69
echo ""
70
echo "Installation complete! Run 'copilot help' to get started."
0 commit comments