From 691baba22e7fb1fe47005558ca92e540566fe383 Mon Sep 17 00:00:00 2001 From: Joshua Ismael Haase Hernandez Date: Fri, 25 Mar 2011 07:09:23 -0700 Subject: Added libremessages and format in scripts --- librechroot | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'librechroot') diff --git a/librechroot b/librechroot index 99adcc0..ec437de 100755 --- a/librechroot +++ b/librechroot @@ -21,12 +21,13 @@ # You should have received a copy of the GNU General Public License # along with Parabola. If not, see . +source /etc/libretools.conf + [[ "$UID" != "0" ]] && { - echo "This script must be run as root." + error "This script must be run as root." exit 1 } -source /etc/libretools.conf custom_config=${XDG_CONFIG_HOME}/libretools/libretools.conf [[ -e ${custom_config} ]] && source ${custom_config} @@ -35,7 +36,7 @@ root=${1:-$CHCOPY} CACHEDIR=${CACHEDIR:-/var/cache/pacman/pkg} [[ ! -d ${CHROOTDIR}/${root} ]] && { - echo "${CHROOTDIR}/$root is not a dir." + error "${CHROOTDIR}/$root is not a dir." exit 1 } -- cgit v1.2.3-54-g00ecf