diff options
-rwxr-xr-x | gist | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -286,9 +286,8 @@ _index_pattern() { | |||
286 | # If tag=true, print tags instead or url | 286 | # If tag=true, print tags instead or url |
287 | # TODO color private/starred mark | 287 | # TODO color private/starred mark |
288 | _show_list() { | 288 | _show_list() { |
289 | if [[ ! -e $INDEX ]]; then | 289 | if [[ ! -s $INDEX ]]; then |
290 | echo 'No local file found for last update, please run command:' | 290 | echo 'Index file is empty, please run commands "gist fetch" or "gist create"' |
291 | echo ' gist update' | ||
292 | return 0 | 291 | return 0 |
293 | fi | 292 | fi |
294 | 293 | ||