From 95cbee6fca9ee56ecac42532ca8eeb4654182123 Mon Sep 17 00:00:00 2001 From: Enrico Ludwig Date: Sun, 12 May 2024 15:02:47 +0200 Subject: [PATCH] Replaced call to eval with direct call to sudo --- borgmatic_setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borgmatic_setup.sh b/borgmatic_setup.sh index 9c178c6..4e58cdf 100755 --- a/borgmatic_setup.sh +++ b/borgmatic_setup.sh @@ -265,7 +265,7 @@ function run_command { dbg "Running command: sudo $*" exec 3>&1 - output=$(eval "sudo $@" 2>&1) + output=$(sudo "$@" 2>&1) status=$? echo "$output" | while read -r line; do dbg "$line"; done 1>&3 exec 3>&-