aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 750e175..2ff924d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1022,6 +1022,11 @@ static void ftag_sync_run_rsync(int push)
const char *remote_host = ftag_config_get(FC_REMOTE_HOST);
const char *remote_root = ftag_config_get(FC_REMOTE_ROOT);
+ if (strlen(remote_host) == 0) {
+ fprintf(stderr, "ftag sync: no remote_host is configured\n");
+ exit(EXIT_FAILURE);
+ }
+
char remote_path[128];
strbuild(remote_path, "%s:%s/", remote_host, remote_root);
char local_path[128];