Magellan Linux

Diff of /branches/mage-next/src/common.functions.sh.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2603 by niro, Tue Mar 4 14:35:29 2014 UTC revision 2611 by niro, Tue Mar 4 15:23:57 2014 UTC
# Line 27  die() Line 27  die()
27  {  {
28   xtitleclean   xtitleclean
29   mqueryfeature "debug" && echo -e ${COLRED}"Exited ${BASH_SOURCE} at line no ${BASH_LINENO}."${COLDEFAULT}   mqueryfeature "debug" && echo -e ${COLRED}"Exited ${BASH_SOURCE} at line no ${BASH_LINENO}."${COLDEFAULT}
30   echo -e ${COLRED}"$@"${COLDEFAULT}   echo -e ${COLRED}"Error: $@"${COLDEFAULT}
31   exit 1   exit 1
32  }  }
33    
# Line 48  xtitle() Line 48  xtitle()
48  {  {
49   if [[ ${TERM} = xterm ]]   if [[ ${TERM} = xterm ]]
50   then   then
51   echo -ne "\033]0;[sMage: $@]\007"   echo -ne "\033]0;[${0##*/}: $@]\007"
52   fi   fi
53   return 0   return 0
54  }  }

Legend:
Removed from v.2603  
changed lines
  Added in v.2611