From f09654160a26e6cc4ff5bf88c36af1ca7fa33e3f Mon Sep 17 00:00:00 2001 From: Pallav Vasa Date: Sat, 17 May 2025 02:59:32 +0000 Subject: [PATCH] fix: use evec instead of eval for running scp --- gitops_router.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitops_router.sh b/gitops_router.sh index 3ceffb0..b874968 100644 --- a/gitops_router.sh +++ b/gitops_router.sh @@ -27,7 +27,7 @@ logO() { logO info "Received SSH_ORIGINAL_COMMAND: $SSH_ORIGINAL_COMMAND" if [[ "${SSH_ORIGINAL_COMMAND:-}" == "scp -t $ALLOWED_PATH" ]]; then - eval "$SSH_ORIGINAL_COMMAND" + exec scp -t "ALLOWED_PATH" exit fi