diff options
author | Toby Vincent <tobyv13@gmail.com> | 2021-07-15 14:01:12 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2021-07-15 14:01:12 -0500 |
commit | 889ceedeb786679c507cadd61e6c5ed20114b08b (patch) | |
tree | 995b522de533401e3988db0a582b7e83dbf4a01d /scripts | |
parent | f88ee2491be52cd48b4d79b98c18f86a83109ead (diff) |
style: cleaned up and added some comments
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mkln.sh | 6 |
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 |