diff options
author | Toby Vincent <tobyv13@gmail.com> | 2021-10-17 18:57:14 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2021-10-17 18:57:14 -0500 |
commit | 493ac479e2beded9627880eaca324f612d9cafa1 (patch) | |
tree | 720399f1b5aa8723075a2e563c86c99e5f3e47fe /scripts/mkln.sh | |
parent | ef1f04bd56e0591968a7eb40f4143c20fc8ee1a1 (diff) |
fix: fixed wsl install
Diffstat (limited to 'scripts/mkln.sh')
-rwxr-xr-x | scripts/mkln.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mkln.sh b/scripts/mkln.sh index 129a706..b5806a6 100755 --- a/scripts/mkln.sh +++ b/scripts/mkln.sh @@ -83,7 +83,7 @@ target=$(wslpath -w $(dirname $2))\\$(basename $2) if ls -la "$(dirname $2)/" 2>/dev/null | grep -q "$(basename $2)"; then - current_path=$(powershell.exe -c "(Get-Item $target).Target") + current_path=$(powershell.exe -c "(Get-Item $target).Target" 2>/dev/null) if [[ "${current_path/*wsl$/}" == *"${source/*wsl$/}"* ]]; then [ "$VERBOSE" == true ] && echo "$(basename $2) is set correctly. Skipping." |