diff options
| author | typebrook <typebrook@gmail.com> | 2020-01-31 00:47:08 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2020-01-31 00:47:08 +0800 |
| commit | 43c487dc1e36f2b8a28c7664fd7855691ec8260c (patch) | |
| tree | 992a04a13014bb2a8dffb7ccdeaf40f1a05fde09 /scripts/gist | |
| parent | 8bd965f0c0fececdd156065be74bbd7999ff9eea (diff) | |
update
Diffstat (limited to 'scripts/gist')
| -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) |