summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2013-11-20 06:44:19 -0800
committerJacob Vosmaer <contact@jacobvosmaer.nl>2013-11-20 06:44:19 -0800
commit6fc922c23242dd3d1a222f8564c8b74b71c6aa10 (patch)
tree158918e5a7df9ebe7eb30962f14ddbb670da9fe6
parent9e00fb4078ca8a168687f876c1f6a98198a68155 (diff)
parent8513d181aee05e43d39fca2a07b95842646e3c0c (diff)
downloadgitlab-shell-6fc922c23242dd3d1a222f8564c8b74b71c6aa10.tar.gz
Merge pull request #112 from Javex/master
Display appropriate error message on config error
-rwxr-xr-xbin/check1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/check b/bin/check
index 4391cff..c867e38 100755
--- a/bin/check
+++ b/bin/check
@@ -21,6 +21,7 @@ config = GitlabConfig.new
dirs = [config.repos_path, config.auth_file, config.redis['bin']]
dirs.each do |dir|
+ abort("ERROR: missing option in config.yml") unless dir
print "\t#{dir}: "
if File.exists?(dir)
print 'OK'