Skip to content

Commit 7c75e17

Browse files
devm33Copilot
andauthored
Update install.sh
Co-authored-by: Copilot <[email protected]>
1 parent 5bf6153 commit 7c75e17

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

install.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,15 @@ else
5656
fi
5757

5858
# 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
59+
case ":$PATH:" in
60+
*":$INSTALL_DIR:"*) ;;
61+
*)
62+
echo ""
63+
echo "Warning: $INSTALL_DIR is not in your PATH"
64+
echo "Add it to your PATH by adding this line to your shell profile:"
65+
echo " export PATH=\"\$PATH:$INSTALL_DIR\""
66+
;;
67+
esac
6568

6669
echo ""
6770
echo "Installation complete! Run 'copilot help' to get started."

0 commit comments

Comments
 (0)