aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2020-01-31 00:47:08 +0800
committertypebrook <typebrook@gmail.com>2020-01-31 00:47:08 +0800
commit43c487dc1e36f2b8a28c7664fd7855691ec8260c (patch)
tree992a04a13014bb2a8dffb7ccdeaf40f1a05fde09 /scripts
parent8bd965f0c0fececdd156065be74bbd7999ff9eea (diff)
update
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gist2
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
60set -eo pipefail 61set -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)