diff options
| author | Tristan Riehs <tristan.riehs@inria.fr> | 2026-01-25 16:48:23 +0100 |
|---|---|---|
| committer | Tristan Riehs <tristan.riehs@inria.fr> | 2026-01-25 16:48:23 +0100 |
| commit | 203bb6fb2a02d2ec0ad80d515f5c379f4425ece9 (patch) | |
| tree | 9adae922b6b61d584505fe6cc466c6341d6478c7 | |
| parent | f50bcf36e95eeeb58d7756e5f6e8a7d5276e8a18 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |
