From 348f8c2ec709f99d5f16568be1a76312f084864f Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sun, 26 Jul 2020 20:31:29 +0200 Subject: [PATCH] :shirt: Fix shellcheck linter warning --- prometheus/rootfs/etc/services.d/prometheus-configgen/run | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prometheus/rootfs/etc/services.d/prometheus-configgen/run b/prometheus/rootfs/etc/services.d/prometheus-configgen/run index ed99aa8..2016867 100755 --- a/prometheus/rootfs/etc/services.d/prometheus-configgen/run +++ b/prometheus/rootfs/etc/services.d/prometheus-configgen/run @@ -6,7 +6,8 @@ if [[ ! -d /share/promethus/targets ]] ; then chown -R prometheus:prometheus /share/prometheus/targets fi -cd /opt/prometheus-configgen +cd /opt/prometheus-configgen || bashio::exit.nok \ + "Could not change working directory for prometheus-configgen." # Run Prometheus exec s6-setuidgid prometheus python3 combiner