commit 3defeaf241d29e7659df874120ebe90628d33d7a Spenser Truex <truex@equwal.com> 2026-09-22 20:29:31 -0700 bm-sync: use sbmsync.com as the default server The sbm Sync server moved from sbm.subread.space to sbmsync.com. A login without a server now uses the new address. The old address still serves the sync API, so a config from an earlier login keeps working. A new test checks the default.
README | 2 +- bm-sync | 4 ++-- test/run.sh | 6 ++++++ 3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/README b/README index f218327..4dd5366 100755 --- a/README +++ b/README @@ -215,7 +215,7 @@ holds the lock until the editor ends; bm-sync waits for it, and bm syncs the edit after. A lock left by a process that is gone is taken over. The server is sbm-sync (https://github.com/equwal/sbm-sync). bm-sync uses -https://sbm.subread.space unless you give another server: create an account +https://sbmsync.com unless you give another server: create an account there. The server is free software, so you can run your own: bm-sync login https://sbm.example.org diff --git a/bm-sync b/bm-sync index 2e441b2..b4e233d 100755 --- a/bm-sync +++ b/bm-sync @@ -10,7 +10,7 @@ DATADIR=${XDG_DATA_HOME:-$HOME/.local/share}/sbm BOOKMARKS=${BOOKMARKS:-$DATADIR/bookmarks} CONFIG=${SBM_SYNC_CONFIG:-${XDG_CONFIG_HOME:-$HOME/.config}/sbm/sync} -SERVER=https://sbm.subread.space +SERVER=https://sbmsync.com STATE=$BOOKMARKS.sync # name of the version of the last sync LOCK=$BOOKMARKS.sync.lock WLOCK=$BOOKMARKS.lock # the write lock of bm @@ -20,7 +20,7 @@ usage () { cat <<'EOF' usage: bm-sync [-q] [login [server] | logout | status] Without a command: sync the bookmark file now. - login sign in to the server (default https://sbm.subread.space) + login sign in to the server (default https://sbmsync.com) and sync; asks for your email and password logout sign out on this computer status show the server and the time of the last sync diff --git a/test/run.sh b/test/run.sh index 18cb118..8ea58e0 100755 --- a/test/run.sh +++ b/test/run.sh @@ -1185,6 +1185,12 @@ bmsync -q logout eq 'bm-sync logout forgets the token and signs out on the server' \ "$([ -e "$SBM_SYNC_CONFIG" ] || echo gone) $(cat "$srv/log")" 'gone logout' eq 'bm-sync leaves no lock behind' "$(ls -d "$BOOKMARKS.sync.lock" 2>/dev/null)" '' + +printf 'me@example.org +secret pass +' | bmsync login >/dev/null 2>&1 +eq 'bm-sync login without a server uses sbmsync.com' "$(sed -n 1p "$SBM_SYNC_CONFIG")" 'server=https://sbmsync.com' +bmsync -q logout unset SBM_TEST_SRV # bm starts bm-sync after each change. A stand-in bm-sync records the config