summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/mkln.sh
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2021-07-16 16:31:23 -0500
committerToby Vincent <tobyv13@gmail.com>2021-07-16 16:31:23 -0500
commita8352380bb68ccce3539f4fcf9d44a96536d210b (patch)
tree4c581161a11464eeb7f1587e39f0313183010e6d /scripts/mkln.sh
parent7e91d77033fecf74916d985df67d73addc95e2c5 (diff)
revert: reverted change that broke win symlinks
Diffstat (limited to 'scripts/mkln.sh')
-rwxr-xr-xscripts/mkln.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/mkln.sh b/scripts/mkln.sh
index 7fb12cc..129a706 100755
--- a/scripts/mkln.sh
+++ b/scripts/mkln.sh
@@ -100,9 +100,10 @@ if ls -la "$(dirname $2)/" 2>/dev/null | grep -q "$(basename $2)"; then
fi
mkdir -p "$(dirname $2)"
+cmd="cd ~; cmd /c mklink ${args} ${target} ${source}"
if [ "$DEBUG" == true ]; then
- [ "$QUIET" != true ] && printf '\nCommand: \n%s\n\n' "powershell.exe -c cd ~; cmd /c mklink ${args} ${target} ${source} &>/dev/null"
+ [ "$QUIET" != true ] && printf '\nCommand: \n%s\n\n' "powershell.exe -c ${cmd} &>/dev/null"
else
- powershell.exe -c "cd ~; cmd /c mklink ${args} ${target} ${source}" &>/dev/null
+ powershell.exe -c "${cmd}" &>/dev/null
fi