summaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mkln.sh2
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."