You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2020/07/05 01:12:28 UTC
[whimsy] branch master updated: quick exit if puppet is not in path
This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 843b00a quick exit if puppet is not in path
843b00a is described below
commit 843b00aad0ae5a835a504643b9696f9bf01cd7c6
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Sat Jul 4 21:11:28 2020 -0400
quick exit if puppet is not in path
---
tools/pubsub.rb | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tools/pubsub.rb b/tools/pubsub.rb
index 2bb7c24..d983583 100644
--- a/tools/pubsub.rb
+++ b/tools/pubsub.rb
@@ -70,6 +70,11 @@ end
optionparser.parse!
+if options.puppet and `which puppet 2>/dev/null`.empty?
+ STDERR.puts 'puppet not found in path; exiting'
+ exit 1
+end
+
#
### process management
#