diff options
| author | typebrook <typebrook@gmail.com> | 2020-03-27 10:40:47 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2020-03-27 10:40:47 +0800 |
| commit | 8f90b5506ff98271e1e108b8d5bf5a9ecd596261 (patch) | |
| tree | cfb416cecf12c18e69b318acb0b58f537198f841 | |
| parent | 21a642ea94c094ff69429e5634197882eac81d3a (diff) | |
Replace non-parsable file type into 'Text'
| -rwxr-xr-x | gist | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -369,6 +369,7 @@ _parse_response() { | |||
| 369 | local blob_code; blob_code=$(echo "$file_url_array" | tr ',' '\n' | sed -E -e 's#.*raw/(.*)/.*#\1#' | sort | cut -c -7 | paste -s -d '-' -) | 369 | local blob_code; blob_code=$(echo "$file_url_array" | tr ',' '\n' | sed -E -e 's#.*raw/(.*)/.*#\1#' | sort | cut -c -7 | paste -s -d '-' -) |
| 370 | local prefix=$mark; [[ $public == 'False' ]] && prefix=p | 370 | local prefix=$mark; [[ $public == 'False' ]] && prefix=p |
| 371 | [[ -n $1 ]] && local index=${1}; index=${prefix}${index} | 371 | [[ -n $1 ]] && local index=${1}; index=${prefix}${index} |
| 372 | file_array=${file_array//@None/@Text} | ||
| 372 | eval echo "${INDEX_FORMAT[@]/#/$}" | 373 | eval echo "${INDEX_FORMAT[@]/#/$}" |
| 373 | done | 374 | done |
| 374 | } | 375 | } |