Minor script refactoring/refinement

This commit is contained in:
Michael Vines
2019-06-13 08:28:31 -07:00
parent fc34687687
commit efe676bc94
4 changed files with 19 additions and 16 deletions

View File

@ -1,9 +1,9 @@
#!/bin/bash -e
#!/usr/bin/env bash
#
# Stops local metrics
#
cd "$(dirname "$0")"
set -e
for container in influxdb grafana; do
if [ "$(docker ps -q -a -f name=$container)" ]; then
@ -16,4 +16,3 @@ for container in influxdb grafana; do
done
echo Local metrics stopped
exit 0