summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/mkln.sh
diff options
context:
space:
mode:
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