Skip to content

Commit

Permalink
Merge pull request atom#1935 from tombh/1814-linux-compat-show-error-…
Browse files Browse the repository at this point in the history
…on-startup

If atom.sh has non-zero exit show errors captured by nohup. Refers to atom#1814
  • Loading branch information
kevinsawicki committed May 6, 2014
2 parents 8cc871f + 1ea54f8 commit e9ed456
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion atom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e9ed456

Please sign in to comment.