aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/mkln.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mkln.sh')
-rwxr-xr-xscripts/mkln.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/mkln.sh b/scripts/mkln.sh
index 3728b9e..7fb12cc 100755
--- a/scripts/mkln.sh
+++ b/scripts/mkln.sh
@@ -101,10 +101,8 @@ 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 ${cmd} &>/dev/null"
+ [ "$QUIET" != true ] && printf '\nCommand: \n%s\n\n' "powershell.exe -c cd ~; cmd /c mklink ${args} ${target} ${source} &>/dev/null"
else
- powershell.exe -c "${cmd}" &>/dev/null
+ powershell.exe -c "cd ~; cmd /c mklink ${args} ${target} ${source}" &>/dev/null
fi