From f311703160f5b1a00ef2e8a0b6886b567b6bf8f5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 03:32:40 +0000 Subject: [PATCH 1/2] Bump docker/build-push-action from 5 to 6 Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5 to 6. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](https://github.com/docker/build-push-action/compare/v5...v6) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/docker-push.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-push.yml b/.github/workflows/docker-push.yml index 758de78..5980e6b 100644 --- a/.github/workflows/docker-push.yml +++ b/.github/workflows/docker-push.yml @@ -135,7 +135,7 @@ jobs: - name: Build and push Docker images (Docker) if: ${{ steps.build_check.outputs.build == 'true' }} - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: push: true context: . @@ -148,7 +148,7 @@ jobs: - name: Build and push Docker images (GHCR) if: ${{ steps.build_check.outputs.build == 'true' }} - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: push: true context: . From cb0b3c7c9f60245d84290992384041fd780a1945 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Fri, 6 Dec 2024 01:46:13 +0300 Subject: [PATCH 2/2] Improve options parsing --- SOURCES/web-utils | 10 +++++----- web-utils.spec | 5 ++++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/SOURCES/web-utils b/SOURCES/web-utils index 1e0e968..b1831cd 100755 --- a/SOURCES/web-utils +++ b/SOURCES/web-utils @@ -13,7 +13,7 @@ fi APP="WEB Utils" # Utility version -VER="2.3.1" +VER="2.3.2" ################################################################################ @@ -968,7 +968,7 @@ showOptWarn() { exit 1 } -## OPTIONS PARSING 5 ########################################################### +## OPTIONS PARSING 6 ########################################################### if [[ $# -eq 0 ]] ; then main @@ -976,7 +976,7 @@ fi unset opt optn optm optv optt optk -optv="$*" ; optt="" +optv="$*" ; optt=() while [[ -n "$1" ]] ; do if [[ "$1" =~ \ && -n "$optn" ]] ; then @@ -1066,7 +1066,7 @@ while [[ -n "$1" ]] ; do fi fi - optt="$optt $1" ; shift + optt+=("$1") ; shift done [[ -n "$optn" ]] && declare "$optn=true" @@ -1074,6 +1074,6 @@ done unset opt optn optm optk # shellcheck disable=SC2015,SC2086 -[[ -n "$KEEP_OPTS" ]] && main $optv || main ${optt:1} +[[ -n "$KEEP_OPTS" ]] && main $optv || main "${optt[@]}" ################################################################################ diff --git a/web-utils.spec b/web-utils.spec index cd5ca1d..784a289 100644 --- a/web-utils.spec +++ b/web-utils.spec @@ -2,7 +2,7 @@ Summary: Helpers for working with web server Name: web-utils -Version: 2.3.1 +Version: 2.3.2 Release: 0%{?dist} Group: Applications/System License: Apache License, Version 2.0 @@ -49,6 +49,9 @@ rm -rf %{buildroot} ################################################################################ %changelog +* Fri Dec 06 2024 Anton Novojilov - 2.3.2-0 +- Improved options parsing + * Sun Jun 09 2024 Anton Novojilov - 2.3.1-0 - Improved automatic disabling of color output usage