diff options
| author | Anton Bobov <abobov@gmail.com> | 2011-10-26 10:14:03 +0600 |
|---|---|---|
| committer | Anton Bobov <abobov@gmail.com> | 2011-10-26 10:14:03 +0600 |
| commit | c3339413792acb963c93a1e85124366d078abe66 (patch) | |
| tree | 803c41572d2bd29cbf8ee5c09129d60c2c245b34 /create_links.sh | |
| parent | f66a87644b112c6f5cc0ed789fd6cfd020a8f61c (diff) | |
f
Diffstat (limited to 'create_links.sh')
| -rwxr-xr-x | create_links.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/create_links.sh b/create_links.sh index 00a341a..1684e5c 100755 --- a/create_links.sh +++ b/create_links.sh @@ -6,6 +6,7 @@ set -e dir="$(cd "$(dirname "$0")" && pwd)" os=$(uname --operating-system) ignore="$dir/ignore-$(/bin/hostname)" +CMD=$SYSTEMROOT/System32/cmd.exe filter() { fname="files/$(basename "$@")" @@ -20,9 +21,9 @@ create_windows_link() target=$target/$(basename "$link") rm -rvf "$target" if [ -d "$link" ] ; then - cmd /c mklink /D $(cygpath --windows "$target") $(cygpath --windows "$link") + $CMD /c mklink /D $(cygpath --windows "$target") $(cygpath --windows "$link") else - cmd /c mklink $(cygpath --windows "$target") $(cygpath --windows "$link") + $CMD /c mklink $(cygpath --windows "$target") $(cygpath --windows "$link") fi } |
