Skip to content

Commit

Permalink
fix get itself absolute path (#2997)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro authored Nov 21, 2022
1 parent ea13d59 commit 25dec5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ func tryToInstallMountExec() error {
if _, err := os.Stat("/sbin/mount.juicefs"); err == nil {
return nil
}
src, err := filepath.Abs(os.Args[0])
src, err := os.Executable()
if err != nil {
return err
}
Expand Down

0 comments on commit 25dec5e

Please sign in to comment.