Skip to content
Snippets Groups Projects
Commit c747a3fe authored by Jörg Sachse's avatar Jörg Sachse
Browse files

feat: check requirements of error_summary.sh before running the script

parent f7d7bac7
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,11 @@ else ...@@ -21,6 +21,11 @@ else
SERVER_LOG_DIR="/operational_shared/logs/${HOSTNAME}/" SERVER_LOG_DIR="/operational_shared/logs/${HOSTNAME}/"
fi fi
# list external required binaries here (space separated)
REQUIREMENTS="help2man grep sed gzip man find file sort uniq"
for REQUIREMENT in ${REQUIREMENTS}; do
command -v "${REQUIREMENT}" >/dev/null 2>&1 || { echo >&2 "ERROR: '${REQUIREMENT}' required but not installed. Aborting."; exit 1; }
done
### CLI ARGUMENTS ### CLI ARGUMENTS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment