From 8f90b5506ff98271e1e108b8d5bf5a9ecd596261 Mon Sep 17 00:00:00 2001 From: typebrook Date: Fri, 27 Mar 2020 10:40:47 +0800 Subject: Replace non-parsable file type into 'Text' --- gist | 1 + 1 file changed, 1 insertion(+) diff --git a/gist b/gist index d65289b..0b1a7fb 100755 --- a/gist +++ b/gist @@ -369,6 +369,7 @@ _parse_response() { local blob_code; blob_code=$(echo "$file_url_array" | tr ',' '\n' | sed -E -e 's#.*raw/(.*)/.*#\1#' | sort | cut -c -7 | paste -s -d '-' -) local prefix=$mark; [[ $public == 'False' ]] && prefix=p [[ -n $1 ]] && local index=${1}; index=${prefix}${index} + file_array=${file_array//@None/@Text} eval echo "${INDEX_FORMAT[@]/#/$}" done } -- cgit v1.2.3-70-g09d2