Skip to content

Commit 158267e

Browse files
committed
Update resource/win/atom.sh from master
1 parent 7742b34 commit 158267e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

resources/win/atom.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/sh
2-
pushd $(dirname "$0") > /dev/null
3-
ATOMCMD=""$(pwd -W)"/atom.cmd"
4-
popd > /dev/null
5-
cmd.exe //c "$ATOMCMD" "$@"
2+
if command -v "cygpath" > /dev/null; then
3+
ATOMCMD=""$(cygpath "$(dirname "$0")" -a -w)\\atom.cmd""
4+
else
5+
pushd "$(dirname "$0")" > /dev/null
6+
ATOMCMD=""$(pwd -W)/atom.cmd""
7+
popd > /dev/null
8+
fi
9+
cmd.exe /C "$ATOMCMD" "$@"

0 commit comments

Comments
 (0)