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: . 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