diff options
Diffstat (limited to 'src/is_updated.c')
| -rw-r--r-- | src/is_updated.c | 15 |
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 |
