Last active
September 20, 2019 16:27
-
-
Save skolomiiets/a0bd09da4b0b6d437a65d709e4607304 to your computer and use it in GitHub Desktop.
Curl github token check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
curl --header 'Authorization: token $TOKEN' \ | |
--header 'Accept: application/vnd.github.v3.raw' \ | |
--remote-name \ | |
--location https://api.github.com/repos/owner/repo/contents/path |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment