aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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) {