aboutsummaryrefslogtreecommitdiff
path: root/src/is_updated.c
diff options
context:
space:
mode:
authordacctal <dacctal@symlinx.net>2026-06-21 01:33:58 +0000
committerdacctal <dacctal@symlinx.net>2026-06-21 01:33:58 +0000
commit7cde9aeb5dccce578c1eed13cf1ed2c61e446800 (patch)
tree3323e34bbec0a87a4bb659a90816b28a6a241f5a /src/is_updated.c
parent6482da05e96630d622f7deea02e31cb0ff07c89e (diff)
huge code cleanup
Diffstat (limited to 'src/is_updated.c')
-rw-r--r--src/is_updated.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/is_updated.c b/src/is_updated.c
index 5fce96b..68e6d2e 100644
--- a/src/is_updated.c
+++ b/src/is_updated.c
@@ -6,15 +6,14 @@
#include "is_updated.h"
#include "cmd_out.h"
-#include "vars.h"
bool is_updated(const char *src) {
- if (src && strlen(src) > 0 && chdir(src) != 0) {
- return false;
- }
+ if (src && strlen(src) > 0 && chdir(src) != 0) {
+ return false;
+ }
- char *output = cmd_out("git pull");
- bool result = (strstr(output, "Already up to date.") != NULL);
- free(output);
- return result;
+ char *output = cmd_out("git pull");
+ bool result = (strstr(output, "Already up to date.") != NULL);
+ free(output);
+ return result;
} \ No newline at end of file