mirror of
https://github.com/dolthub/dolt.git
synced 2026-03-18 09:40:59 -05:00
24 lines
461 B
Bash
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
|