提交 934a0737 作者: Dominic Della Valle

Replace OS check

License: MIT
Signed-off-by: 's avatarDominic Della Valle <ddvpublic@gmail.com>
上级 e3d483fc
......@@ -6,7 +6,6 @@ import (
"os"
"path"
"path/filepath"
"runtime"
"sort"
"strings"
......@@ -260,7 +259,7 @@ const msgStdinInfo = "ipfs: Reading from %s; send Ctrl-d to stop."
func parseArgs(inputs []string, stdin *os.File, argDefs []cmds.Argument, recursive, hidden bool, root *cmds.Command) ([]string, []files.File, error) {
// ignore stdin on Windows
if runtime.GOOS == "windows" {
if osh.IsWindows() {
stdin = nil
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论