aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Riehs <tristan.riehs@inria.fr>2026-01-25 16:48:23 +0100
committerTristan Riehs <tristan.riehs@inria.fr>2026-01-25 16:48:23 +0100
commit203bb6fb2a02d2ec0ad80d515f5c379f4425ece9 (patch)
tree9adae922b6b61d584505fe6cc466c6341d6478c7
parentf50bcf36e95eeeb58d7756e5f6e8a7d5276e8a18 (diff)
Remove "sh -c" from the ssh command
It is not needed, an this actually makes the command not always print "0".
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
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) {