Skip to content

Commit

Permalink
Merge pull request #44 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Version 2.2.1
  • Loading branch information
andyone authored Jan 31, 2023
2 parents dc6cd2e + f522873 commit 6b0ed48
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 214 deletions.
2 changes: 1 addition & 1 deletion .docker/alpine.docker
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ARG REGISTRY="docker.io"

################################################################################

FROM ${REGISTRY}/essentialkaos/alpine:3.15
FROM ${REGISTRY}/essentialkaos/alpine:3.16

LABEL org.opencontainers.image.title="web-utils" \
org.opencontainers.image.description="Helpers for working with web server" \
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
- name: Build and push Docker images (Docker)
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
push: true
context: .
Expand All @@ -148,7 +148,7 @@ jobs:
- name: Build and push Docker images (GHCR)
if: ${{ steps.build_check.outputs.build == 'true' }}
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
push: true
context: .
Expand Down
201 changes: 0 additions & 201 deletions SOURCES/LICENSE

This file was deleted.

17 changes: 9 additions & 8 deletions SOURCES/web-utils
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fi
APP="WEB Utils"

# Utility version
VER="2.2.0"
VER="2.2.1"

################################################################################

Expand Down Expand Up @@ -73,8 +73,8 @@ MAX_ECC_SIZE=384

################################################################################

SUPPORTED_OPTS="!ecc size !help !usage !version !ver !no_colors"
SHORT_OPTS="E:!ecc s:size h:!help v:!version nc:!no_colors"
SUPPORTED_OPTS="!ecc size !help !version !no_color"
SHORT_OPTS="E:!ecc s:size h:!help v:!version nc:!no_color"

################################################################################

Expand All @@ -85,18 +85,18 @@ SHORT_OPTS="E:!ecc s:size h:!help v:!version nc:!no_colors"
# Code: No
# Echo: No
main() {
if [[ ! -t 1 || -n "$no_colors" || -n "$NO_COLOR" ]] ; then
if [[ ! -t 1 || -n "$no_color" || -n "$NO_COLOR" ]] ; then
unset NORM BOLD UNLN RED GREEN YELLOW BLUE MAG CYAN GREY DARK
unset CL_NORM CL_BOLD CL_UNLN CL_RED CL_GREEN CL_YELLOW CL_BLUE CL_MAG CL_CYAN CL_GREY CL_DARK
unset CL_BL_RED CL_BL_GREEN CL_BL_YELLOW CL_BL_BLUE CL_BL_MAG CL_BL_CYAN CL_BL_GREY CL_BL_DARK
fi

if [[ -n "$version" || -n "$ver" ]] ; then
if [[ -n "$version" ]] ; then
about
exit 0
fi

if [[ $# -eq 0 || -n "$help" || -n "$usage" ]] ; then
if [[ $# -eq 0 || -n "$help" ]] ; then
usage
exit 0
fi
Expand Down Expand Up @@ -837,7 +837,7 @@ doExit() {
# Code: No
# Echo: No
show() {
if [[ -n "$2" && -z "$no_colors" ]] ; then
if [[ -n "$2" && -z "$no_color" ]] ; then
echo -e "\e[${2}m${1}\e[0m"
else
echo -e "$*"
Expand Down Expand Up @@ -903,11 +903,13 @@ usage() {
if [[ -n "$DARK" ]] ; then
show " ${CL_GREEN}--ecc, -E${CL_NORM} ${CL_DARK}........${CL_NORM} Generate ECC certificate signing request"
show " ${CL_GREEN}--size, -S ${CL_GREY}size${CL_NORM} ${CL_DARK}..${CL_NORM} Key size ${CL_DARK}(ECC: $MIN_ECC_SIZE-$MAX_ECC_SIZE / RSA: $MIN_RSA_SIZE-$MAX_RSA_SIZE)${CL_NORM}"
show " ${CL_GREEN}--no-color, -nc${CL_NORM} ${CL_DARK}..${CL_NORM} Disable colors in output"
show " ${CL_GREEN}--help, -h${CL_NORM} ${CL_DARK}.......${CL_NORM} Show this help message"
show " ${CL_GREEN}--version, -v${CL_NORM} ${CL_DARK}....${CL_NORM} Show information about version"
else
show " --ecc, -E Generate ECC certificate signing request"
show " --size, -s size Key size (ECC: $MIN_ECC_SIZE-$MAX_ECC_SIZE / RSA: $MIN_RSA_SIZE-$MAX_RSA_SIZE)"
show " --no-color, -nc Disable colors in output"
show " --help, -h Show this help message"
show " --version, -v Show information about version"
fi
Expand Down Expand Up @@ -960,7 +962,6 @@ showOptWarn() {

if [[ $# -eq 0 ]] ; then
main
exit $?
fi

unset opt optn optm optv optt optk
Expand Down
2 changes: 1 addition & 1 deletion web-utils.source
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SOURCES/web-utils
SOURCES/LICENSE
LICENSE
7 changes: 6 additions & 1 deletion web-utils.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Summary: Helpers for working with web server
Name: web-utils
Version: 2.2.0
Version: 2.2.1
Release: 0%{?dist}
Group: Applications/System
License: Apache License, Version 2.0
Expand Down Expand Up @@ -39,6 +39,8 @@ ln -sf %{_bindir}/%{name} %{buildroot}%{_bindir}/wu
%clean
rm -rf %{buildroot}

################################################################################

%files
%defattr(-,root,root,-)
%doc LICENSE
Expand All @@ -47,6 +49,9 @@ rm -rf %{buildroot}
################################################################################

%changelog
* Tue Jan 31 2023 Anton Novojilov <[email protected]> - 2.2.1-0
- Minor fixes

* Sun Jan 09 2022 Anton Novojilov <[email protected]> - 2.2.0-0
- Added command 'crt-info' for viewing information from certificates
- Added 'NO_COLOR' support
Expand Down

0 comments on commit 6b0ed48

Please sign in to comment.