mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-12-25 15:43:00 +03:00
Optimize bash Windows, force LF line endings
This commit is contained in:
parent
0e5a4ffb6e
commit
26fcb03662
3
.gitattributes
vendored
3
.gitattributes
vendored
@ -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""
|
||||
fi
|
||||
popd > /dev/null
|
||||
cmd.exe //c "$ATOMCMD" "$@"
|
||||
fi
|
||||
cmd.exe /C "$ATOMCMD" "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user