Skip to content
Snippets Groups Projects
Commit ccf5669b authored by Fons Rademakers's avatar Fons Rademakers
Browse files

add quotes around $messfile in test, avoids problems in case script is

called from PROOF workers.


git-svn-id: http://root.cern.ch/svn/root/trunk@31992 27541ba8-7e3a-0410-8455-c3a389f83636
parent 70857ec8
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@
# It is used by TUnixSystem::StackTrace() on Linux and MacOS X.
tempname=`basename $0 .sh`
messfile=""
OUTFILE=`mktemp -q /tmp/${tempname}.XXXXXX`
if test $? -ne 0; then
......@@ -216,7 +217,7 @@ $line"
if test "x$ininterp" = "xyes"; then
echo ""
echo ""
if test -f $messfile; then
if test -f "$messfile"; then
cat $messfile | tr '%' '\n'
else
echo 'The crash is most likely caused by a problem in your script.'
......@@ -229,7 +230,7 @@ $line"
elif ! test "x$frames" = "x"; then
echo ""
echo ""
if test -f $messfile; then
if test -f "$messfile"; then
cat $messfile | tr '%' '\n'
else
echo 'The lines below might hint at the cause of the crash.'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment