fix: sign-setup.sh 的 $KEY 黏著全形括號(make lint-sh 不過)

This commit is contained in:
王性驊 2026-11-16 21:34:03 +08:00
parent 9c1c6d9c6b
commit 7ae503d0d6
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
set -eu
cd "$(dirname "$0")/.."
KEY=${KEY:-$HOME/.ssh/id_ed25519.pub}
[ -f "$KEY" ] || { echo "找不到公鑰:$KEY(先 ssh-keygen -t ed25519,或用 KEY=… 指定)"; exit 1; }
[ -f "$KEY" ] || { echo "找不到公鑰:${KEY}(先 ssh-keygen -t ed25519,或用 KEY=… 指定)"; exit 1; }
# Only the key itself goes in the list: the comment (often an e-mail or a machine name) stays out.
pub=$(awk '{print $1 " " $2; exit}' "$KEY")
line="anybot namespaces=\"git\" $pub"