Output fixes.

This commit is contained in:
lemniskett 2020-10-27 15:45:11 +07:00
parent 4ded2d0a7f
commit 06bc4352a8

View File

@ -3,7 +3,7 @@
source /etc/archbox.conf source /etc/archbox.conf
checkdep(){ checkdep(){
which $1 >/dev/null 2>&1 || echo "Install $1." && exit 1 which $1 >/dev/null 2>&1 || err "Install $1!" && exit 1
} }
copyresolv(){ copyresolv(){
@ -11,13 +11,13 @@ copyresolv(){
} }
asroot(){ asroot(){
[[ $EUID -ne 0 ]] && echo "Run this as root!" && exit 1 [[ $EUID -ne 0 ]] && err "Run this as root!" && exit 1
} }
help_text(){ help_text(){
cat << EOF cat << EOF
USAGE $0 <arguments> USAGE $0 <arguments>
OPTIONS: OPTIONS:
--create LINK Creates a chroot enviroment. --create LINK Creates a chroot enviroment.
--enter Enters chroot enviroment. --enter Enters chroot enviroment.