Actions
Bug #9799
closedGrep error when running the agent
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
Hello,
When running the agent, I get on some servers:
# /opt/rudder/bin/rudder agent check grep: : No such file or directory # /opt/rudder/bin/rudder agent check -i grep: -i: No such file or directory
Here is a few more informations :
# lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 8.6 (jessie) Release: 8.6 Codename: jessie # dpkg -l|grep rudder-agent ii rudder-agent 4.0.1-jessie0 amd64 Configuration management and audit tool - agent
It seems to be related to the rerouting of stderr in /opt/rudder/share/lib/common.sh line 2:
# Warn on potentially invalid arguments if grep -- -- "$*" > /dev/null
Thanks.
Alexandre
Actions