Use arithmetic conditionals for numeric tests in bin
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
f15a91cbe2
commit
d407454511
@@ -89,7 +89,7 @@ authorize_keys_from_github() {
|
||||
authorize_key "$key" && added=$((added + 1))
|
||||
done <<<"$keys"
|
||||
|
||||
if [[ $added -eq 0 ]]; then
|
||||
if (( added == 0 )); then
|
||||
echo -e "\e[31mNo valid SSH keys found for GitHub user '$username'.\e[0m" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user