Replaced call to eval with direct call to sudo

This commit is contained in:
Enrico Ludwig 2024-05-12 15:02:47 +02:00
parent b7899ec28b
commit 95cbee6fca

View File

@ -265,7 +265,7 @@ function run_command {
dbg "Running command: sudo $*" dbg "Running command: sudo $*"
exec 3>&1 exec 3>&1
output=$(eval "sudo $@" 2>&1) output=$(sudo "$@" 2>&1)
status=$? status=$?
echo "$output" | while read -r line; do dbg "$line"; done 1>&3 echo "$output" | while read -r line; do dbg "$line"; done 1>&3
exec 3>&- exec 3>&-