refactor(plugin:auth): Removed dependency loop in favour of pkg_install
Some checks failed
Lint / lint (push) Failing after 14s
Lint / lint (pull_request) Failing after 12s

This commit is contained in:
2026-06-27 09:16:11 +05:30
parent ed56ef95a9
commit db6ec1c1c8

View File

@@ -7,12 +7,8 @@
set -euo pipefail
# Ensure dependencies are met
for dep in ssh-keygen curl jq age; do
if ! has_command "$dep"; then
log_error "Dependency '$dep' is missing. Please install it to use authentication."
exit 1
fi
done
pkg_install "arch:openssh|debian:openssh-client|fedora:openssh-clients" "curl" "jq" "age"
# Ensure public key exists next to private key for ssh-keygen -Y sign
ensure_pubkey_exists() {