feat: only warn on no .ssh
All checks were successful
push / build (push) Successful in 4m40s

This commit is contained in:
张泊明518370910136 2026-03-17 20:45:22 -07:00
parent 8c56c856c1
commit 5abbdf13f1
GPG Key ID: CA088E6D9284F870

View File

@ -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