aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/mkln.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mkln.sh')
-rwxr-xr-xscripts/mkln.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/mkln.sh b/scripts/mkln.sh
index 2e5a54b..ef174c2 100755
--- a/scripts/mkln.sh
+++ b/scripts/mkln.sh
@@ -74,8 +74,8 @@ fi
[ "$VERBOSE" == true ] && echo "linking $2 -> $1"
if [ -d "$1" ]; then
- [ "$VERBOSE" == true ] && echo "$1 is a directory. Creating junction."
- args='/J'
+ [ "$VERBOSE" == true ] && echo "$1 is a directory. Creating symbolic link."
+ args='/D'
fi
mkdir -p $(dirname $2)
@@ -107,5 +107,9 @@ 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"
else
- powershell.exe -c "${cmd}" &>/dev/null
+ if $QUIET; then
+ powershell.exe -c "${cmd}" &>/dev/null
+ else
+ powershell.exe -c "${cmd}"
+ fi
fi