From 203bb6fb2a02d2ec0ad80d515f5c379f4425ece9 Mon Sep 17 00:00:00 2001 From: Tristan Riehs Date: Sun, 25 Jan 2026 16:48:23 +0100 Subject: Remove "sh -c" from the ssh command It is not needed, an this actually makes the command not always print "0". --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 5560e59..9d7ca49 100644 --- a/src/main.c +++ b/src/main.c @@ -1077,7 +1077,7 @@ static void ftag_sync(int argc, char **argv) { char *remote_path = FTAG_REMOTE_ROOT "/ftag.sqlite3"; char cmd[1024]; - strbuild(cmd, "ssh %s sh -c 'test -f %s && stat --format=%%Y %s || echo 0'", + strbuild(cmd, "ssh %s 'test -f %s && stat --format=%%Y %s || echo 0'", FTAG_REMOTE_HOST, remote_path, remote_path); FILE *pipe = popen(cmd, "r"); if (!pipe) { -- cgit v1.2.3