diff options
author | Toby Vincent <tobyv13@gmail.com> | 2021-07-16 16:31:23 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2021-07-16 16:31:23 -0500 |
commit | a8352380bb68ccce3539f4fcf9d44a96536d210b (patch) | |
tree | 4c581161a11464eeb7f1587e39f0313183010e6d | |
parent | 7e91d77033fecf74916d985df67d73addc95e2c5 (diff) |
revert: reverted change that broke win symlinks
-rwxr-xr-x | scripts/mkln.sh | 5 |
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 |