Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix comment
  • Loading branch information
kylecarbs committed Oct 9, 2023
commit 1f473686a20c4fe7d612a23411b72855ebe793fa
5 changes: 3 additions & 2 deletions cli/externalauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ func (r *RootCmd) externalAuthAccessToken() *clibase.Cmd {
Description: "Ensure that the user is authenticated with GitHub before cloning.",
Command: `#!/usr/bin/env sh

if coder external-auth access-token github ; then
OUTPUT=$(coder external-auth access-token github)
if [ $? -eq 0 ]; then
echo "Authenticated with GitHub"
else
echo "Please authenticate with GitHub:"
coder external-auth url github
echo $OUTPUT
fi
`,
},
Expand Down