forked from ungleich-public/cdist
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)
This commit is contained in:
parent
b1d7da4258
commit
c895be381f
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ execcmd(){
|
||||||
;;
|
;;
|
||||||
esac
|
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 "status=\$?"
|
||||||
echo "if [ \"\$status\" -ne \"0\" ]; then"
|
echo "if [ \"\$status\" -ne \"0\" ]; then"
|
||||||
echo " echo \"Error: ${_cmd} exited nonzero with \$status\"'!' >&2"
|
echo " echo \"Error: ${_cmd} exited nonzero with \$status\"'!' >&2"
|
||||||
|
|
Loading…
Reference in a new issue