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)
remotes/origin/AnotherKamila-patch-1
Michal Hanula 7 years ago
parent b1d7da4258
commit c895be381f
  1. 2
      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"

Loading…
Cancel
Save