Files
atom/resources/win/atom.sh
Kevin Sawicki f59382dbda Use dirname in win/apm.sh
Refs #6738
Refs #7141
2015-06-10 16:11:13 -07:00

25 lines
416 B
Bash

#!/bin/sh
while getopts ":fhtvw-:" opt; do
case "$opt" in
-)
case "${OPTARG}" in
foreground|help|test|version|wait)
EXPECT_OUTPUT=1
;;
esac
;;
f|h|t|v|w)
EXPECT_OUTPUT=1
;;
esac
done
directory=$(dirname "$0")
if [ $EXPECT_OUTPUT ]; then
"$directory/../../atom.exe" "$@"
else
"$directory/../app/apm/bin/node.exe" "$directory/atom.js" "$@"
fi