summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/chef/resource/script.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/script.rb b/lib/chef/resource/script.rb
index ac3af619e5..0d7e6a10d5 100644
--- a/lib/chef/resource/script.rb
+++ b/lib/chef/resource/script.rb
@@ -39,10 +39,10 @@ class Chef
# FIXME: remove this and use an execute sub-resource instead of inheriting from Execute
def command(arg = nil)
+ super
unless arg.nil?
raise Chef::Exceptions::Script, "Do not use the command property on a #{resource_name} resource, use the 'code' property instead."
end
- super
end
property :code, String, required: true