From 4a74bf13f6fbb887be55f18aef782e2e6497ee9b Mon Sep 17 00:00:00 2001 From: Will Rouesnel Date: Sun, 11 Nov 2018 21:58:17 +1100 Subject: [PATCH] More debugging. --- gh-assets-clone.sh | 2 +- postgres-metrics-get-changes.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gh-assets-clone.sh b/gh-assets-clone.sh index a4f93b0e..63bc50f6 100755 --- a/gh-assets-clone.sh +++ b/gh-assets-clone.sh @@ -1,4 +1,4 @@ -#!/bin/bash -x +#!/bin/bash # Script to setup the assets clone of the repository using GIT_ASSETS_BRANCH and # GIT_API_KEY. diff --git a/postgres-metrics-get-changes.sh b/postgres-metrics-get-changes.sh index 85f40b95..37dbfb37 100755 --- a/postgres-metrics-get-changes.sh +++ b/postgres-metrics-get-changes.sh @@ -3,7 +3,9 @@ # output by the exporter and then build lists of added/removed metrics. old_src="$1" -[ ! -e "$old_src" ] && exit 1 +if [ ! -d "$old_src" ] ; then + mkdir -p "$old_src" +fi function generate_add_removed() { type="$1"