From db6ec1c1c8974dcfbd67d3f708f96e2557f58c87 Mon Sep 17 00:00:00 2001 From: Aditya Gupta Date: Sat, 27 Jun 2026 09:16:11 +0530 Subject: [PATCH] refactor(plugin:auth): Removed dependency loop in favour of pkg_install --- plugins/auth.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/auth.sh b/plugins/auth.sh index 349562e..e4882b6 100644 --- a/plugins/auth.sh +++ b/plugins/auth.sh @@ -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() {