lib/fir/util/build_common.rb in fir-cli-1.4.9 vs lib/fir/util/build_common.rb in fir-cli-1.5.0
- old
+ new
@@ -45,10 +45,14 @@
if options[:output].blank?
output_path = "#{@build_dir}/fir_build"
FileUtils.mkdir_p(output_path) unless File.exist?(output_path)
output_path
else
- File.absolute_path(options[:output].to_s)
+ output_path = options[:output].to_s
+ unless File.exist?(output_path)
+ logger.warn "The output path not exist and fir-cli will autocreate it..."
+ end
+ File.absolute_path(output_path)
end
end
def publish_build_app(options)
logger_info_blank_line