aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xgist6
1 files changed, 3 insertions, 3 deletions
diff --git a/gist b/gist
index b87da54..d21655c 100755
--- a/gist
+++ b/gist
@@ -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