From: Frank Brehm Date: Tue, 23 May 2023 09:01:24 +0000 (+0200) Subject: Minor changes to scripts/get-module-version X-Git-Tag: 0.9.0~1^2~45 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=e28574b53a9ea094ed0cfaa531aa182bf147f673;p=pixelpark%2Fpp-admin-tools.git Minor changes to scripts/get-module-version --- diff --git a/scripts/get-module-version b/scripts/get-module-version index f868c7d..5a5b2a6 100755 --- a/scripts/get-module-version +++ b/scripts/get-module-version @@ -6,7 +6,7 @@ set -u VERBOSE="n" DEBUG="n" -VERSION="0.1" +VERSION="0.2" # console colors: RED="" @@ -174,6 +174,7 @@ get_options() { if [[ "$#" -lt 1 ]] ; then error "No module name to search for the version given." + echo usage >&2 exit 1 else @@ -190,7 +191,7 @@ get_options() { #------------------------------------------------------------------------------ my_date() { - date +'%F %T.%N %:::z' + date +'%F %T %:::z' } #------------------------------------------------------------------------------ @@ -244,6 +245,7 @@ get_module_version() { echo echo -e "Versions of module '${CYAN}${module}${NORMAL}':" + echo md_files=() envs=() @@ -295,7 +297,6 @@ main() { get_module_version echo - info "Finished." }