Skip to content

Commit

Permalink
ci(run-exporters): fix not checking for presence properly
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgomesdev committed Dec 23, 2023
1 parent 9033541 commit b2f0c60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/scripts/run-exporters.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ RESET=$(tput sgr0)
LOG_DIRECTORY="/var/log/rusty-controller/prometheus-exporters"
mkdir -p "$LOG_DIRECTORY"

if ! which node_exporter || which process-exporter; then
printf "${WARNING}No exporters found. $RESET"
if ! (which node_exporter > /dev/null || which process-exporter > /dev/null); then
echo "${WARNING}No exporters found. $RESET"
exit 0
fi

Expand Down

0 comments on commit b2f0c60

Please sign in to comment.