We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3149b9a commit cd125cdCopy full SHA for cd125cd
resources/win/atom.sh
@@ -1,5 +1,9 @@
1
#!/bin/sh
2
-pushd $(dirname "$0") > /dev/null
3
-ATOMCMD=""$(pwd -W)"/atom.cmd"
4
-popd > /dev/null
5
-cmd.exe //c "$ATOMCMD" "$@"
+if command -v "cygpath" > /dev/null; then
+ ATOMCMD=""$(cygpath "$(dirname "$0")" -a -w)\\atom.cmd""
+else
+ 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