Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL path not always starting with /mnt #9594

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions util/wsl_install.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ util_dir=$(dirname "$0")
dir=$(cd -P -- "$util_dir" && pwd -P)
pushd "$dir";

if [[ $dir != /mnt/* ]];
mount_point=$(df ${dir} | tail -1 | cut -d' ' -f 1);
MrMarble marked this conversation as resolved.
Show resolved Hide resolved
valid_windows_mount="^[A-Z]:\\\\$"

if [[ ! $mount_point =~ $valid_windows_mount ]];
then
echo
echo "You need to clone the qmk_firmware repository outside the linux filesystem."
Expand All @@ -31,7 +34,7 @@ source "$dir/win_shared_install.sh"

pip3 install -r ${util_dir}/../requirements.txt

echo
echo
echo "Creating a softlink to the utils directory as ~/qmk_utils."
echo "This is needed so that the the make system can find all utils it need."
read -p "Press enter to continue (ctrl-c to abort)"
Expand Down