diff options
-rwxr-xr-x | scripts/gist | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/gist b/scripts/gist index ef1e5e2..2d13f3f 100755 --- a/scripts/gist +++ b/scripts/gist | |||
@@ -420,7 +420,10 @@ _create_gist() { | |||
420 | | AccessJsonElement "$(_gist_body)" > $http_data \ | 420 | | AccessJsonElement "$(_gist_body)" > $http_data \ |
421 | && http_method POST $GITHUB_API/gists \ | 421 | && http_method POST $GITHUB_API/gists \ |
422 | | sed '1 s/^/[/; $ s/$/]/' \ | 422 | | sed '1 s/^/[/; $ s/$/]/' \ |
423 | | _parse_response $(( $(sed '/^s/ d' $INDEX | wc -l) +1 )) >> $INDEX | 423 | | _parse_response $(( $(sed '/^s/ d' $INDEX | wc -l) +1 )) \ |
424 | | tee -a $INDEX \ | ||
425 | | cut -d' ' -f2 | sed -E 's#.*/##' \ | ||
426 | | (xargs -I{} git clone git@github.com:{}.git $folder/{} &> /dev/null &) | ||
424 | 427 | ||
425 | if [[ $? -eq 0 ]]; then | 428 | if [[ $? -eq 0 ]]; then |
426 | echo 'Gist is created' | 429 | echo 'Gist is created' |