diff options
author | Joshua Ismael Haase Hernandez <hahj87@gmail.com> | 2011-03-25 07:09:23 -0700 |
---|---|---|
committer | Joshua Ismael Haase Hernandez <hahj87@gmail.com> | 2011-03-25 07:09:23 -0700 |
commit | 691baba22e7fb1fe47005558ca92e540566fe383 (patch) | |
tree | 8fc6367afbe472c51664ff2edf0310715b8712dd /librechroot | |
parent | 5f47cf2a8f096f284bb1a9278fa676960ae65847 (diff) |
Added libremessages and format in scripts
Diffstat (limited to 'librechroot')
-rwxr-xr-x | librechroot | 7 |
1 files changed, 4 insertions, 3 deletions
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 <http://www.gnu.org/licenses/>. +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 } |