+ sw default param = update

no longer need to provide "update" for sw updates
This commit is contained in:
t470p
2024-05-09 19:58:24 -05:00
parent b474660108
commit 75a6219663

View File

@@ -85,6 +85,10 @@ shopt -u extglob
shopt -s extglob shopt -s extglob
if [ $operation == "sw" ] || [ $operation == "software" ] ; then if [ $operation == "sw" ] || [ $operation == "software" ] ; then
if [ -z "${parameter_1}" ]; then
parameter_1=update
fi
if [ $parameter_1 == "update" ] ; then if [ $parameter_1 == "update" ] ; then
if [ -z "${parameter_2}" ]; then if [ -z "${parameter_2}" ]; then
parameter_2=$HOSTNAME parameter_2=$HOSTNAME