Skip to content

Commit

Permalink
fix: overwrite symlink in ios framework
Browse files Browse the repository at this point in the history
Signed-off-by: aeddi <[email protected]>
  • Loading branch information
aeddi committed Jul 6, 2022
1 parent b45ab8b commit bee19d4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/gomobile/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,14 @@ func mkdir(dir string) error {
}

func symlink(src, dst string) error {
if _, err := os.Lstat(dst); err == nil {
if err = removeAll(dst); err != nil {
return err
}
} else if !os.IsNotExist(err) {
return err
}

if buildX || buildN {
printcmd("ln -s %s %s", src, dst)
}
Expand Down

0 comments on commit bee19d4

Please sign in to comment.