Try fixing ability to skip.

This commit is contained in:
2026-03-28 11:33:22 -07:00
parent 132ae721e7
commit f0a2c39bf8

View File

@@ -10,7 +10,15 @@ DIR="`pwd`"
echo "Working in '$DIR'." echo "Working in '$DIR'."
if [[ $1 == "skip" ]]; then skip="false"
if [[ "$1" == "skip" || "$2" == "skip" || "$3" == "skip" ]]; then
echo "1='$1'"
echo "2='$2'"
echo "3='$3'"
skip="true"
fi
if [[ "$skip" == "true" ]]; then
echo "\n`date` - Skipping Updates" echo "\n`date` - Skipping Updates"
else else
echo -e "\n`date` - Upgrade Package Repos" echo -e "\n`date` - Upgrade Package Repos"
@@ -35,7 +43,7 @@ else
fi fi
if [[ $1 == "skip" ]]; then if [[ "$skip" == "true" ]]; then
echo "\n`date` - Skipping Installs" echo "\n`date` - Skipping Installs"
else else
echo -e "\n`date` - Install Software" echo -e "\n`date` - Install Software"