Skip to content

Commit

Permalink
Update mount.go to allow relative file paths
Browse files Browse the repository at this point in the history
Signed-off-by: Justyn Temme <justyntemme@gmail.com>
  • Loading branch information
justyntemme committed Jul 24, 2018
1 parent 48fbb12 commit d76fe1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opts/mount.go
Expand Up @@ -4,6 +4,7 @@ import (
"encoding/csv"
"fmt"
"os"
"path/filepath"
"strconv"
"strings"

Expand Down Expand Up @@ -88,7 +89,7 @@ func (m *MountOpt) Set(value string) error {
case "type":
mount.Type = mounttypes.Type(strings.ToLower(value))
case "source", "src":
mount.Source = value
mount.Source, _ = filepath.Abs(value)
case "target", "dst", "destination":
mount.Target = value
case "readonly", "ro":
Expand Down

0 comments on commit d76fe1d

Please sign in to comment.