diff options
| -rwxr-xr-x | scripts/gist | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/gist b/scripts/gist index 84b6dc7..5b61368 100755 --- a/scripts/gist +++ b/scripts/gist | |||
| @@ -55,6 +55,7 @@ | |||
| 55 | # TODO parallel branch works with wget and other stuff | 55 | # TODO parallel branch works with wget and other stuff |
| 56 | # TODO completion | 56 | # TODO completion |
| 57 | # TODO grep mode for description, file content | 57 | # TODO grep mode for description, file content |
| 58 | # TODO unify indent | ||
| 58 | 59 | ||
| 59 | # Validate configuration | 60 | # Validate configuration |
| 60 | set -eo pipefail | 61 | set -eo pipefail |
| @@ -335,6 +336,7 @@ _new_file() { | |||
| 335 | 336 | ||
| 336 | # create a new gist with files | 337 | # create a new gist with files |
| 337 | # TODO support secret gist | 338 | # TODO support secret gist |
| 339 | # FIXME catch status code from curl if it fails | ||
| 338 | _create_gist() { | 340 | _create_gist() { |
| 339 | _set_gist "$@" | 341 | _set_gist "$@" |
| 340 | [[ -z "$files" ]] && files=$(_new_file $filename) | 342 | [[ -z "$files" ]] && files=$(_new_file $filename) |