clean cli -path

This commit is contained in:
Matthias Kadenbach 2017-02-15 11:07:28 -08:00
parent 316f6c0cf3
commit 6394299937
No known key found for this signature in database
GPG Key ID: DC1F4DC6D31A7031
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import (
"fmt"
"os"
"os/signal"
"path/filepath"
"strconv"
"syscall"
"time"
@ -68,7 +69,7 @@ Commands:
// translate -path into -source if given
if *sourcePtr == "" && *pathPtr != "" {
*sourcePtr = fmt.Sprintf("file://%v", *pathPtr)
*sourcePtr = fmt.Sprintf("file://%v", filepath.Clean(*pathPtr))
}
// initialize migrate