From c895be381fcd77714448ec2277b7b59dfaaddc88 Mon Sep 17 00:00:00 2001 From: Michal Hanula Date: Tue, 2 Jan 2018 18:11:37 +0100 Subject: [PATCH] When installing packages on freebsd, redirect stdout and stderr to /dev/null instead of closing them. Some pre/post-install scripts rely on them being open. (It would be bette to leave them open and show the output, but I didn't want to change the behaviour) --- cdist/conf/type/__package_pkgng_freebsd/gencode-remote | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdist/conf/type/__package_pkgng_freebsd/gencode-remote b/cdist/conf/type/__package_pkgng_freebsd/gencode-remote index aa00de6a..d21e9e2a 100755 --- a/cdist/conf/type/__package_pkgng_freebsd/gencode-remote +++ b/cdist/conf/type/__package_pkgng_freebsd/gencode-remote @@ -70,7 +70,7 @@ execcmd(){ ;; esac - echo "$_cmd 2>&- >&-" # Silence the output of the command + echo "$_cmd >/dev/null 2>&1" # Silence the output of the command echo "status=\$?" echo "if [ \"\$status\" -ne \"0\" ]; then" echo " echo \"Error: ${_cmd} exited nonzero with \$status\"'!' >&2"