fixed apt-get syntax

This commit is contained in:
pyr0ball 2023-05-08 22:21:06 -07:00
parent dcf0d517f3
commit e7dc5fe06a

View file

@ -145,24 +145,6 @@ usage(){
"You must run as 'root' for this script to automatically resolve dependencies" "You must run as 'root' for this script to automatically resolve dependencies"
} }
run(){
_cmd=$@
if [[ $dry_run != true ]] ; then
$_cmd
else
boxline "DryRun: $_cmd"
fi
}
run-and-log(){
_cmd=$@
if [[ $dry_run != true ]] ; then
logger $_cmd
else
logger "DryRun: $_cmd"
fi
}
detectvim(){ detectvim(){
# If the vim install directory exists, check for and store the highest numerical value version installed # If the vim install directory exists, check for and store the highest numerical value version installed
if [[ -d /usr/share/vim ]] ; then if [[ -d /usr/share/vim ]] ; then
@ -195,7 +177,7 @@ check-deps(){
install-deps(){ install-deps(){
boxborder "Installing packages $packages" boxborder "Installing packages $packages"
if [[ dry_run == true ]] ; then if [[ dry_run == true ]] ; then
boxline "DryRun: spin \"for $_package in $packages ; do sudo apt=get install -y $_package ; done\"" boxline "DryRun: spin \"for $_package in $packages ; do sudo apt-get install -y $_package ; done\""
else else
# using a spinner function block to track installation progress # using a spinner function block to track installation progress
spin "for $_package in $packages ; do sudo apt-get install -y $_package ; done" spin "for $_package in $packages ; do sudo apt-get install -y $_package ; done"