fix: sign-setup.sh 的 $KEY 黏著全形括號(make lint-sh 不過)
This commit is contained in:
parent
9c1c6d9c6b
commit
7ae503d0d6
|
|
@ -10,7 +10,7 @@
|
||||||
set -eu
|
set -eu
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
KEY=${KEY:-$HOME/.ssh/id_ed25519.pub}
|
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.
|
# 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")
|
pub=$(awk '{print $1 " " $2; exit}' "$KEY")
|
||||||
line="anybot namespaces=\"git\" $pub"
|
line="anybot namespaces=\"git\" $pub"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue