We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e5a4ff commit 26fcb03Copy full SHA for 26fcb03
.gitattributes
@@ -12,3 +12,6 @@ spec/fixtures/css.css text eol=lf
12
spec/fixtures/sample.js text eol=lf
13
spec/fixtures/sample.less text eol=lf
14
spec/fixtures/sample.txt text eol=lf
15
+
16
+# Windows bash scripts are also Unix LF endings
17
+*.sh eol=lf
resources/win/atom.sh
@@ -1,9 +1,9 @@
1
#!/bin/sh
2
-pushd "$(dirname "$0")" > /dev/null
3
if command -v "cygpath" > /dev/null; then
4
- ATOMCMD=""$(cygpath . -a -w)atom.cmd""
+ ATOMCMD=""$(cygpath "$(dirname "$0")" -a -w)\\atom.cmd""
5
else
+ pushd "$(dirname "$0")" > /dev/null
6
ATOMCMD=""$(pwd -W)/atom.cmd""
7
+ popd > /dev/null
8
fi
-popd > /dev/null
9
-cmd.exe //c "$ATOMCMD" "$@"
+cmd.exe /C "$ATOMCMD" "$@"
0 commit comments