Don't evaluate dnscontrol command in subshell

This commit is contained in:
Sven Luijten 2020-06-24 17:08:32 +02:00 committed by Sven Luijten
parent 5df73401c5
commit 0219959eea

View file

@ -2,7 +2,8 @@
set -eo pipefail
OUTPUT=`sh -c "dnscontrol $1"`
IFS=
OUTPUT="$(dnscontrol "$1")"
echo "$OUTPUT"