You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ra...@apache.org on 2019/01/28 16:33:10 UTC
[sling-tooling-release] 29/29: read update_reporter.config from
~/.config
This is an automated email from the ASF dual-hosted git repository.
radu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-tooling-release.git
commit af1ed82ed6ab2a09dcf7e3847c9547da431ddc7b
Author: Radu Cotescu <ra...@apache.org>
AuthorDate: Mon Jan 28 17:32:33 2019 +0100
read update_reporter.config from ~/.config
---
.gitignore | 1 -
update_reporter.sh | 8 +++++++-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/.gitignore b/.gitignore
index c3ada51..6a3417b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1 @@
/out/
-update_reporter.config
diff --git a/update_reporter.sh b/update_reporter.sh
index 94bed0c..a296d64 100755
--- a/update_reporter.sh
+++ b/update_reporter.sh
@@ -4,7 +4,13 @@ function display_usage() {
echo "$0 <path_to_file_containing_release_names>"
}
-source update_reporter.config
+if [[ -f ~/.config/update_reporter.config ]]; then
+ source ~/.config/update_reporter.config
+else
+ echo "Please provide a configuration file at ~/.config/update_reporter.config. A sample file is provided in this repository."
+ exit 1
+fi
+
if [[ -z "${APACHE_USER}" ]]; then
echo "Please set the APACHE_USER variable in the update_reporter.config file."
exit 1