diff options
-rwxr-xr-x | gist | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -743,7 +743,7 @@ _edit_gist() { | |||
743 | http_data=$(tmp_file) | 743 | http_data=$(tmp_file) |
744 | echo '{' \"description\": \""${DESC//\"/\\\"}"\" '}' > "$http_data" | 744 | echo '{' \"description\": \""${DESC//\"/\\\"}"\" '}' > "$http_data" |
745 | new_record=$(http_method PATCH "$GITHUB_API/gists/$GIST_ID" \ | 745 | new_record=$(http_method PATCH "$GITHUB_API/gists/$GIST_ID" \ |
746 | | xargs -I{} -0 echo "[{}]" \ | 746 | | sed -e '1 s/^/[/; $ s/$/]/' \ |
747 | | _parse_response "${index#[[:alpha:]]}" ) | 747 | | _parse_response "${index#[[:alpha:]]}" ) |
748 | [[ -n $new_record ]] && sed -i'' -E -e "/^$index / s^.+^$new_record^" $INDEX \ | 748 | [[ -n $new_record ]] && sed -i'' -E -e "/^$index / s^.+^$new_record^" $INDEX \ |
749 | && hint=false mark="$index " _show_list \ | 749 | && hint=false mark="$index " _show_list \ |