lib/pbmenv/services/create_version_service.rb in pbmenv-0.1.12 vs lib/pbmenv/services/create_version_service.rb in pbmenv-0.1.13
- old
+ new
@@ -48,10 +48,13 @@
Pbmenv::DownloadSrcService.new(version).execute!
end
def build_app_file
pathname = VersionPathname.new(version)
- Helper.system_and_puts "mkdir -p #{pathname.version_path}"
+ unless Helper.system_and_puts "mkdir -p #{pathname.version_path}"
+ raise "Insufficient permissions..."
+ end
+
Helper.system_and_puts "cp -r #{pathname.src_project_template_systemd_units} #{pathname.version_path}/"
if File.exist?(pathname.src_pbm_project_template_app_rb_erb_path)
pathname.project_template_file_paths(include_app_erb: true).each do |project_template_file_path|
Helper.system_and_puts "cp #{project_template_file_path} #{pathname.version_path}/"