fixed usage formatting

This commit is contained in:
Alan Weinstock 2022-09-01 13:23:41 -07:00
parent 42a495e6b6
commit b047790437

View file

@ -5,6 +5,7 @@
# initial vars # initial vars
VERSION=1.1 VERSION=1.1
scripttitle="Pyr0ball's Reductive Bash Language Installer - v$VERSION"
rundir=${0%/*} rundir=${0%/*}
source ${rundir}/pyr0-bash-functions/functions source ${rundir}/pyr0-bash-functions/functions
scriptname=${0##*/} scriptname=${0##*/}
@ -47,22 +48,19 @@ packages=(
#-----------------------------------------------------------------# #-----------------------------------------------------------------#
usage(){ usage(){
boxtop boxborder \
boxline "${lyl}$scriptname - v${VERSION}:${dfl}" "${lyl}$scripttitle${dfl}" \
boxline "${lbl}Usage:${dfl}" "${lbl}Usage:${dfl}" \
boxline "${lyl}$scriptname ${bld}[args]${dfl}" "${lyl}./$scriptname ${bld}[args]${dfl}" \
boxseparator "$(boxseparator)" \
boxline "[args:]" "[args:]" \
boxline " -i [--install]" " -i [--install]" \
boxline " -r [--remove]" " -r [--remove]" \
boxline " -u [--update]" " -u [--update]" \
boxline " -h [--help]" " -h [--help]" \
boxline "" "" \
boxline "Running this installer as 'root' will install" "Running this installer as 'root' will install globally to $globalinstalldir" \
boxline "globally to $globalinstalldir" "You must run as 'root' for this script to automatically resolve dependencies"
boxline "You must run as 'root' for this script to"
boxline "automatically resolve dependencies"
boxbottom
} }
detectvim(){ detectvim(){