aboutsummaryrefslogtreecommitdiff
path: root/src/revela.c
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-01-26 22:43:29 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-01-26 22:43:29 +0300
commit43d153c00bb067276d3cda141ad62de27cb4971d (patch)
treebc878c5a9a306d1ce9aba8adc5a8eb000d2afa23 /src/revela.c
parentefd8f03262f5cfeedbf2bef0f05636088b39d679 (diff)
downloadrevela-43d153c00bb067276d3cda141ad62de27cb4971d.tar.gz
revela-43d153c00bb067276d3cda141ad62de27cb4971d.zip
Cleanup & fix new album images not being renderedv0.1.3
* Cleaned up some code and formatted with clang-format * Fix the result of what can only be explained as me having a brain-fart^1 leading me to write returns where they shouldn't be hence the image-walk loop returning early when new images were added to an album. * Also cleaned up and fixed a bug in roscha; more in roscha's own repo. 1: https://www.youtube.com/watch?v=UN7SBXJj2pc
Diffstat (limited to 'src/revela.c')
-rw-r--r--src/revela.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/revela.c b/src/revela.c
index f41d271..aca19c5 100644
--- a/src/revela.c
+++ b/src/revela.c
@@ -13,9 +13,8 @@
#define VERSION "0.1.2"
#endif
-static const char *usage =
- "Usage: %s [OPTIONS] -o <output dir>\n"
- "For more information consult `man 1 revela`\n";
+static const char *usage = "Usage: %s [OPTIONS] -o <output dir>\n"
+ "For more information consult `man 1 revela`\n";
static struct site site = {0};
static enum log_level loglvl = LOG_DETAIL;
@@ -47,7 +46,7 @@ parse_arguments(int argc, char *argv[])
printf(usage, cmd);
exit(0);
case 'V':
- printf("revela "VERSION"\n");
+ printf("revela " VERSION "\n");
exit(0);
default:
bad_arguments(cmd);
@@ -69,8 +68,9 @@ main(int argc, char *argv[])
log_set_verbosity(loglvl);
#endif
- int ret = site_init(&site) && site_load(&site) && site_build(&site)
- ? EXIT_SUCCESS : EXIT_FAILURE;
+ int ret = site_init(&site) && site_load(&site) && site_build(&site)
+ ? EXIT_SUCCESS
+ : EXIT_FAILURE;
if (site.dry_run) {
log_printl(LOG_INFO, "==== [DRY RUN] ====");