diff options
author | typebrook <typebrook@gmail.com> | 2020-03-14 23:36:47 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2020-03-14 23:36:49 +0800 |
commit | e3aeb454276c4be56709b1560081f20ee8939f7f (patch) | |
tree | b5781b440167a7c4ddc5155780912241b8cf23b2 | |
parent | d00d5378dd9c1d0bb18271dbcd768cf32df29215 (diff) |
Fix behaviro in gist detail
-rwxr-xr-x | gist | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -471,9 +471,10 @@ _show_detail() { | |||
471 | echo API: https://api.github.com/gists/$GIST_ID | 471 | echo API: https://api.github.com/gists/$GIST_ID |
472 | echo created_at: $(echo $record | cut -d' ' -f7) | 472 | echo created_at: $(echo $record | cut -d' ' -f7) |
473 | echo updated_at: $(echo $record | cut -d' ' -f8) | 473 | echo updated_at: $(echo $record | cut -d' ' -f8) |
474 | if [[ -d $folder/$GIST_ID ]]; then | 474 | repo=$folder/$GIST_ID |
475 | echo files | 475 | if [[ -d $repo ]]; then |
476 | ls | sed -e 's/^/ /' | 476 | echo files: |
477 | ls $repo | sed -e 's/^/ /' | ||
477 | fi | 478 | fi |
478 | } | 479 | } |
479 | 480 | ||