aboutsummaryrefslogtreecommitdiff
path: root/mount.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-08-09 22:50:24 +0200
committerJakob Unterwurzacher2021-08-09 22:50:24 +0200
commitb67c678b10f3b7cf6c61c7808831876c03467ebf (patch)
tree059a6b842295ca10b876bc7ea148241212f0591f /mount.go
parentc3c9513e6504276698ed1f50a259d4333476acf8 (diff)
WIP: switch from go stdlib `flag` to `flaggy`flaggy
Diffstat (limited to 'mount.go')
-rw-r--r--mount.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/mount.go b/mount.go
index ab4ad81..bc752ac 100644
--- a/mount.go
+++ b/mount.go
@@ -45,7 +45,7 @@ type AfterUnmounter interface {
func doMount(args *argContainer) {
// Check mountpoint
var err error
- args.mountpoint, err = filepath.Abs(flagSet.Arg(1))
+ args.mountpoint, err = filepath.Abs(args.mountpoint)
if err != nil {
tlog.Fatal.Printf("Invalid mountpoint: %v", err)
os.Exit(exitcodes.MountPoint)