Skip to content

Commit

Permalink
fix remove_entry_secure error
Browse files Browse the repository at this point in the history
  • Loading branch information
griffin-stewie committed Jul 8, 2021
1 parent 72c767a commit 934bc54
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,15 @@ platform :mac do
FileUtils.mkdir_p(sketch_dir)

FileUtils.cp("../plugin/manifest.json", sketch_dir)
FileUtils.cp("../plugin/src/index.js", sketch_dir)

dir = File.expand_path(File.join("..", PLUGIN_NAME))
FileUtils.remove_entry_secure(dir)

if Dir.exist?(dir)
FileUtils.remove_entry_secure(dir)
end

FileUtils.cp_r(plugin_dir, "..")
dir
dir
end

desc "Package and install plugin to Sketch"
Expand Down

0 comments on commit 934bc54

Please sign in to comment.