aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
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)