aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xgist2
1 files changed, 1 insertions, 1 deletions
diff --git a/gist b/gist
index 679f79d..a296362 100755
--- a/gist
+++ b/gist
@@ -316,7 +316,7 @@ _parse_response() {
316 | tac | sed -e 's/, /,/g' | nl -s' ' \ 316 | tac | sed -e 's/, /,/g' | nl -s' ' \
317 | while read -r index link file_url_array public file_num comment_num author description; do 317 | while read -r index link file_url_array public file_num comment_num author description; do
318 local blob_code; blob_code=$(echo "$file_url_array" | tr ',' '\n' | sed -E -e 's#.*raw/(.*)/.*#\1#' | sort | cut -c -7 | paste -s -d '-' -) 318 local blob_code; blob_code=$(echo "$file_url_array" | tr ',' '\n' | sed -E -e 's#.*raw/(.*)/.*#\1#' | sort | cut -c -7 | paste -s -d '-' -)
319 [[ $public == 'False' ]] && local mark=p 319 [[ $public == 'False' ]] && local mark=p || local mark=''
320 [[ -n $1 ]] && local index=$1 320 [[ -n $1 ]] && local index=$1
321 echo "$mark$index $link $blob_code $file_num $comment_num $author $description" | tr -d '"' 321 echo "$mark$index $link $blob_code $file_num $comment_num $author $description" | tr -d '"'
322 done 322 done