From 5ded388eb36b9338c6b904b5862f5cfe3289c3fe Mon Sep 17 00:00:00 2001 From: Rilindo Foster Date: Fri, 20 May 2016 20:47:23 -0500 Subject: [PATCH] added coded to allow person to specify alternate client bucket path --- clientbucket.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clientbucket.rb b/clientbucket.rb index 4cb5aa9..7d67a54 100644 --- a/clientbucket.rb +++ b/clientbucket.rb @@ -8,8 +8,8 @@ if ARGV.length < 1 exit 1 end -target_path = ARGV.shift -clientbucket_path = "/var/lib/puppet/clientbucket" +target_path,clientbucket_path = ARGV +clientbucket_path ||= "/var/lib/puppet/clientbucket" available_files = Array.new