Files
dolt/bats/helper/windows-compat.bash
Daylon Wilkins 7db698ea81 Freakin tabs
2019-07-23 15:45:27 -07:00

24 lines
461 B
Bash

nativepath() { echo "$1"; }
nativevar() { eval export "$1"="$2"; }
skiponwindows() { :; }
IS_WINDOWS=false
if [ -d /mnt/c/Windows/System32 ]; then
IS_WINDOWS=true
if [ ! -d /mnt/c/batstmp ]; then
mkdir /mnt/c/batstmp
fi
export BATS_TMPDIR=/mnt/c/batstmp
nativepath() {
wslpath -w "$1"
}
nativevar() {
eval export "$1"="$2"
export WSLENV="$1$3"
}
skiponwindows() {
skip "$1"
}
fi