From 29cd868898660c58b1925bf3647c4c63b7bd3151 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 15 Mar 2012 21:16:16 +0100 Subject: --(un|)loadable: indicate results in exit code --- src/list.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/list.c') diff --git a/src/list.c b/src/list.c index 17fcbcc..2affe85 100644 --- a/src/list.c +++ b/src/list.c @@ -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); } -- cgit v1.2.3