From 06bc4352a8e6dda720fb86a41f7f4ab8dff754be Mon Sep 17 00:00:00 2001 From: lemniskett Date: Tue, 27 Oct 2020 15:45:11 +0700 Subject: [PATCH] Output fixes. --- archbox.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archbox.bash b/archbox.bash index 64d910d..f6511c1 100755 --- a/archbox.bash +++ b/archbox.bash @@ -3,7 +3,7 @@ source /etc/archbox.conf checkdep(){ - which $1 >/dev/null 2>&1 || echo "Install $1." && exit 1 + which $1 >/dev/null 2>&1 || err "Install $1!" && exit 1 } copyresolv(){ @@ -11,13 +11,13 @@ copyresolv(){ } asroot(){ - [[ $EUID -ne 0 ]] && echo "Run this as root!" && exit 1 + [[ $EUID -ne 0 ]] && err "Run this as root!" && exit 1 } help_text(){ cat << EOF - USAGE $0 + OPTIONS: --create LINK Creates a chroot enviroment. --enter Enters chroot enviroment.