Merge pull request #1935 from tombh/1814-linux-compat-show-error-on-startup

If atom.sh has non-zero exit show errors captured by nohup. Refers to #1814
This commit is contained in:
Kevin Sawicki
2014-05-06 13:32:17 -07:00

View File

@@ -76,7 +76,13 @@ elif [ $OS == 'Linux' ]; then
"$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@"
exit $?
else
nohup "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > /dev/null 2>&1 &
(
nohup "$ATOM_PATH" --executed-from="$(pwd)" --pid=$$ "$@" > /tmp/atom-nohup.out 2>&1
if [ $? -ne 0 ]; then
cat /tmp/atom-nohup.out
exit $?
fi
) &
fi
fi