diff options
| author | Tristan Riehs <tristan.riehs@inria.fr> | 2026-08-02 12:30:53 +0200 |
|---|---|---|
| committer | Tristan Riehs <tristan.riehs@inria.fr> | 2026-08-02 12:30:53 +0200 |
| commit | bd2328392c8d2118ca43d03aee54193a35ce9e59 (patch) | |
| tree | 8de332fa8941315126c7027a40877bc7deea5cd5 /src/main.c | |
| parent | 2c040c45e5fcbd660407817ef08dfe7cbd6590e6 (diff) | |
Do not run rsync if no remote is configured
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]; |
