--- trunk/mage/usr/lib/mage/mage4.sh 2013/10/16 07:40:02 2221 +++ trunk/mage/usr/lib/mage/mage4.sh 2013/10/16 10:14:41 2233 @@ -5,7 +5,8 @@ # default die function die() { - echo -e ${COLRED}"Exited ${BASH_SOURCE} at line no ${BASH_LINENO}."${COLDEFAULT} + xtitleclean + mqueryfeature "debug" && echo -e ${COLRED}"Exited ${BASH_SOURCE} at line no ${BASH_LINENO}."${COLDEFAULT} echo -e ${COLRED}"$@"${COLDEFAULT} exit 1 } @@ -138,6 +139,8 @@ case ${METHOD} in download) + have_root_privileges || die "You must be root to run this operation." + # first of all get the right pkg which going to be installed PCAT="$(pname2pcat ${MAGENAME})" @@ -169,6 +172,8 @@ ;; srcdownload) + have_root_privileges || die "You must be root to run this operation." + # first of all get the right pkg which going to be installed PCAT="$(pname2pcat ${MAGENAME})"