Skip to content

Commit

Permalink
Check if API call succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmorganson committed Oct 26, 2024
1 parent 304ec3c commit 6fe5973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion home/dot_profile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ PATH="$HOME/.rye/shims:$HOME/.local/bin:$HOME/.orbstack/bin:/opt/homebrew/bin:/u
LS_COLORS={{ output "pkgx" "vivid" "--color-mode" "8-bit" "generate" "one-dark" | trim | quote }}

#GitHub
{{ $user := fromJson (output "sh" "-c" "pkgx gh api https://api.github.com/user || echo '{}'") }}
{{ $user := fromJson (output "sh" "-c" "pkgx gh api https://api.github.com/user && true || echo '{}'") }}
GITHUB_USER={{ $user.login | quote }}
GIT_AUTHOR_NAME={{ $user.name | quote }}
GIT_AUTHOR_EMAIL={{ printf "%v+%[email protected]" $user.id $user.login | quote }}
Expand Down

0 comments on commit 6fe5973

Please sign in to comment.