mirror of https://github.com/atom/atom.git
Optimize bash Windows, force LF line endings
This commit is contained in:
parent
0e5a4ffb6e
commit
26fcb03662
|
@ -12,3 +12,6 @@ spec/fixtures/css.css text eol=lf
|
|||
spec/fixtures/sample.js text eol=lf
|
||||
spec/fixtures/sample.less text eol=lf
|
||||
spec/fixtures/sample.txt text eol=lf
|
||||
|
||||
# Windows bash scripts are also Unix LF endings
|
||||
*.sh eol=lf
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#!/bin/sh
|
||||
pushd "$(dirname "$0")" > /dev/null
|
||||
if command -v "cygpath" > /dev/null; then
|
||||
ATOMCMD=""$(cygpath . -a -w)atom.cmd""
|
||||
ATOMCMD=""$(cygpath "$(dirname "$0")" -a -w)\\atom.cmd""
|
||||
else
|
||||
pushd "$(dirname "$0")" > /dev/null
|
||||
ATOMCMD=""$(pwd -W)/atom.cmd""
|
||||
popd > /dev/null
|
||||
fi
|
||||
popd > /dev/null
|
||||
cmd.exe //c "$ATOMCMD" "$@"
|
||||
cmd.exe /C "$ATOMCMD" "$@"
|
||||
|
|
Loading…
Reference in New Issue