diff options
| -rwxr-xr-x | gist | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -452,9 +452,9 @@ _update_gists() { | |||
| 452 | _query_user() { | 452 | _query_user() { |
| 453 | local fetched_records=$(tmp_file fetched) | 453 | local fetched_records=$(tmp_file fetched) |
| 454 | route=users/$1/gists _fetch_gists_with_pagnation $fetched_records | 454 | route=users/$1/gists _fetch_gists_with_pagnation $fetched_records |
| 455 | cat $fetched_records \ | 455 | tac <$fetched_records | nl -s' ' \ |
| 456 | | while read -r ${INDEX_FORMAT[@]#index}; do | 456 | | while read -r ${INDEX_FORMAT[@]}; do |
| 457 | echo "$url $author $file_num $comment_num $description" | cut -c -"$(tput cols)" | 457 | echo $index $url $author $file_num $comment_num $description | cut -c -"$(tput cols)" |
| 458 | done || { echo "Failed to query $1's gists"; exit 1; } | 458 | done || { echo "Failed to query $1's gists"; exit 1; } |
| 459 | } | 459 | } |
| 460 | 460 | ||