🐧 If atom.sh has non-zero exit show errors captured by nohup. Refers to #1814

Esse commit está contido em:
Thomas Buckley-Houston
2014-05-06 17:21:01 +01:00
commit 1ea54f8c92
+7 -1
Ver Arquivo
@@ -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