From b04779043747ea07ac56e3b9eee05fee95e9d23a Mon Sep 17 00:00:00 2001 From: Alan Weinstock Date: Thu, 1 Sep 2022 13:23:41 -0700 Subject: [PATCH] fixed usage formatting --- install.sh | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/install.sh b/install.sh index d63b44a..5902bde 100644 --- a/install.sh +++ b/install.sh @@ -5,6 +5,7 @@ # initial vars VERSION=1.1 +scripttitle="Pyr0ball's Reductive Bash Language Installer - v$VERSION" rundir=${0%/*} source ${rundir}/pyr0-bash-functions/functions scriptname=${0##*/} @@ -47,22 +48,19 @@ packages=( #-----------------------------------------------------------------# usage(){ - boxtop - boxline "${lyl}$scriptname - v${VERSION}:${dfl}" - boxline "${lbl}Usage:${dfl}" - boxline "${lyl}$scriptname ${bld}[args]${dfl}" - boxseparator - boxline "[args:]" - boxline " -i [--install]" - boxline " -r [--remove]" - boxline " -u [--update]" - boxline " -h [--help]" - boxline "" - boxline "Running this installer as 'root' will install" - boxline "globally to $globalinstalldir" - boxline "You must run as 'root' for this script to" - boxline "automatically resolve dependencies" - boxbottom + boxborder \ + "${lyl}$scripttitle${dfl}" \ + "${lbl}Usage:${dfl}" \ + "${lyl}./$scriptname ${bld}[args]${dfl}" \ + "$(boxseparator)" \ + "[args:]" \ + " -i [--install]" \ + " -r [--remove]" \ + " -u [--update]" \ + " -h [--help]" \ + "" \ + "Running this installer as 'root' will install globally to $globalinstalldir" \ + "You must run as 'root' for this script to automatically resolve dependencies" } detectvim(){