File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -122,16 +122,13 @@ chmod +x "$INSTALL_DIR/copilot"
122122echo " ✓ GitHub Copilot CLI installed to $INSTALL_DIR /copilot"
123123rm -rf " $TMP_DIR "
124124
125- # Check if install directory is in PATH
126- case " :$PATH :" in
127- * " :$INSTALL_DIR :" * ) ;;
128- * )
129- echo " "
130- echo " Warning: $INSTALL_DIR is not in your PATH"
131- echo " Add it to your PATH by adding this line to your shell profile:"
132- echo " export PATH=\"\$ PATH:$INSTALL_DIR \" "
133- ;;
134- esac
125+ # Check if installed binary is accessible
126+ if ! command -v copilot > /dev/null 2>&1 ; then
127+ echo " "
128+ echo " Warning: $INSTALL_DIR is not in your PATH"
129+ echo " Add it to your PATH by adding this line to your shell profile:"
130+ echo " export PATH=\"\$ PATH:$INSTALL_DIR \" "
131+ fi
135132
136133echo " "
137134echo " Installation complete! Run 'copilot help' to get started."
You can’t perform that action at this time.
0 commit comments