executable_github-create-repository 292 B

12345678910111213
  1. #!/bin/sh
  2. # Create a GitHub REPOSITORY.
  3. #
  4. # Thanks to:
  5. # https://gist.github.com/alexpchin/dc91e723d4db5018fef8
  6. # https://stackoverflow.com/a/10325316
  7. set -e -x
  8. repository="$1"
  9. curl -u "wigust:$(pass show github/wigust)" "https://api.github.com/user/repos" -d "{\"name\":\"$repository\"}"