Browse Source

Alejandro Mery:

show last $? on xtrace mode's prompt


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2303 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Alejandro Mery 21 years ago
parent
commit
240af871ce
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      scripts/Build-Pkg

+ 1
- 1
scripts/Build-Pkg

@ -658,7 +658,7 @@ abort() {
done
echo "Running main build function '$mainfunction' ..."
if [ $xtrace -eq 1 -o $ROCKCFG_XTRACE -eq 1 ] ; then
PS4=$'=[$FUNCNAME:$LINENO> ' ; set -o xtrace
PS4=$'=[$FUNCNAME:$LINENO (last \\\$?=$?)> ' ; set -o xtrace
cd $builddir ; eval "$mainfunction"
set +o xtrace
else

Loading…
Cancel
Save