diff options
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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]; |
