If a path already has a : treat it as if it were already native

* wslpath seems to fail on converting "C:\foo" to windows path even though it
  has nothing to do.
This commit is contained in:
baldurk
2018-12-12 11:13:35 +00:00
parent ac196bde79
commit 19aed5b1f2
+3 -1
View File
@@ -8,7 +8,9 @@ LLVM_ARM32=$(readlink -f $(dirname $0)/support/llvm_arm32)
LLVM_ARM64=$(readlink -f $(dirname $0)/support/llvm_arm64)
native_path() {
if which cygpath >/dev/null 2>&1; then
if echo "${1}" | grep -q :; then
echo "${1}";
elif which cygpath >/dev/null 2>&1; then
cygpath -w "${1}";
elif which wslpath >/dev/null 2>&1; then
wslpath -w "${1}";