devcam: mount: extra args go before mountpoint

Change-Id: Ibe0686c6e2c847c16b916133edbbb56915ff8ae6
This commit is contained in:
Brad Fitzpatrick 2014-01-31 11:58:42 +01:00
parent e5ad2282c4
commit 77dd30fbd1
1 changed files with 1 additions and 1 deletions

View File

@ -110,9 +110,9 @@ func (c *mountCmd) RunCommand(args []string) error {
"-xterm=" + strconv.FormatBool(c.xterm), "-xterm=" + strconv.FormatBool(c.xterm),
"-debug=" + strconv.FormatBool(c.debug), "-debug=" + strconv.FormatBool(c.debug),
"-server=" + blobserver, "-server=" + blobserver,
mountpoint,
} }
cmdArgs = append(cmdArgs, args...) cmdArgs = append(cmdArgs, args...)
cmdArgs = append(cmdArgs, mountpoint)
fmt.Printf("Cammount running with mountpoint %v. Press 'q' <enter> or ctrl-c to shut down.\n", mountpoint) fmt.Printf("Cammount running with mountpoint %v. Press 'q' <enter> or ctrl-c to shut down.\n", mountpoint)
return runExec(cmdBin, cmdArgs, c.env) return runExec(cmdBin, cmdArgs, c.env)
} }