Files
wsl-tools/bin/windows-mount
T

8 lines
195 B
Bash
Executable File

#!/bin/bash
# returns if windows is mounted
MOUNTED="$(mount | egrep -w '^C:\\')"
if [ -z "$MOUNTED" ]; then
exit 1
fi
echo "$MOUNTED" | sed -n 's/^.* on \(.*\) type [a-zA-Z0-9_.]\+ (.*)$/\1/p'