diff options
author | Daniel Friesel <derf@finalrewind.org> | 2012-03-15 21:16:16 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2012-03-15 21:16:16 +0100 |
commit | 29cd868898660c58b1925bf3647c4c63b7bd3151 (patch) | |
tree | be995936651b80fe6e4678662df69089b779ace1 /src/list.c | |
parent | 338553950063615b59d80d2148d208b490c3d0bd (diff) |
--(un|)loadable: indicate results in exit code
Diffstat (limited to 'src/list.c')
-rw-r--r-- | src/list.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -77,6 +77,7 @@ void real_loadables_mode(int loadable) { feh_file *file; gib_list *l; + char ret = 0; opt.quiet = 1; @@ -91,6 +92,8 @@ void real_loadables_mode(int loadable) puts(file->filename); feh_action_run(file, opt.actions[0]); } + else + ret = 1; gib_imlib_free_image_and_decache(im); } else { /* Oh dear. */ @@ -98,7 +101,9 @@ void real_loadables_mode(int loadable) puts(file->filename); feh_action_run(file, opt.actions[0]); } + else + ret = 1; } } - exit(0); + exit(ret); } |