From 5abbdf13f1486ff675d77fe7ec6172da8bb6f09b Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Tue, 17 Mar 2026 20:45:22 -0700 Subject: [PATCH] feat: only warn on no .ssh --- bin/joj3-forge-convert | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/joj3-forge-convert b/bin/joj3-forge-convert index 86f7723..022e4df 100755 --- a/bin/joj3-forge-convert +++ b/bin/joj3-forge-convert @@ -58,7 +58,12 @@ EOF echo "FATAL: Forbidden file found in '/home/tt/.config/teapot/teapot.env'. Check the latest README to set TEAPOT_GITEA_TOKEN in secrets instead." >&2 exit 1 fi - rsync -a "$config_repo_path/home/tt/.ssh/" "/home/tt/.ssh" + # optional .ssh path + if [ -d "$config_repo_path/home/tt/.ssh/" ]; then + rsync -a "$config_repo_path/home/tt/.ssh/" "/home/tt/.ssh" + else + echo "WARNING: No .ssh directory found in config repo" + fi rsync -a --delete "$config_repo_path/home/tt/.config/" "/home/tt/.config" # check gitea token