complete TZ=UTC typo fix
Fixed all cases where `TZ=UTZ` was incorrectly used and replaced with `TZ=UTC`. Changed `bin/gen-sitemap.sh` VERSION from "2.0.2 2025-07-30" to "2.0.3 2025-08-23". Changed `bin/tar-entry.sh` VERSION from "2.0.0 2025-03-13" to "2.0.1 2025-08-23". Changed `bin/tar-year.sh` VERSION from "2.0.0 2025-03-13" to "2.0.1 2025-08-23".
This commit is contained in:
1 parent
618a8545cf
commit
f39c98749b
4 files changed
+12
-12
No files matched your search
+5
-5
@@ -116,7 +116,7 @@ export LC_ALL="C"
|
|||||||
|
|
||||||
# set variables referenced in the usage message
|
# set variables referenced in the usage message
|
||||||
#
|
#
|
||||||
export VERSION="2.0.2 2025-07-30"
|
export VERSION="2.0.3 2025-08-23"
|
||||||
NAME=$(basename "$0")
|
NAME=$(basename "$0")
|
||||||
export NAME
|
export NAME
|
||||||
export V_FLAG=0
|
export V_FLAG=0
|
||||||
@@ -211,9 +211,9 @@ function output_modtime
|
|||||||
# shellcheck disable=SC2012
|
# shellcheck disable=SC2012
|
||||||
status_codes=("${PIPESTATUS[@]}")
|
status_codes=("${PIPESTATUS[@]}")
|
||||||
if [[ ${status_codes[*]} =~ [1-9] ]]; then
|
if [[ ${status_codes[*]} =~ [1-9] ]]; then
|
||||||
TZ=UTZ "$LS_TOOL" -D '%FT%T+00:00' -ld "$FILENAME" | awk '{print $6;}'
|
TZ=UTC "$LS_TOOL" -D '%FT%T+00:00' -ld "$FILENAME" | awk '{print $6;}'
|
||||||
echo "$0: ERROR: in output_modtime:" \
|
echo "$0: ERROR: in output_modtime:" \
|
||||||
"TZ=UTZ $LS_TOOL -D '%FT%T+00:00' -ld $FILENAME | awk .. failed," \
|
"TZ=UTC $LS_TOOL -D '%FT%T+00:00' -ld $FILENAME | awk .. failed," \
|
||||||
"error codes: ${status_codes[*]}" 1>&2
|
"error codes: ${status_codes[*]}" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -500,12 +500,12 @@ else
|
|||||||
|
|
||||||
# Try ls -D:
|
# Try ls -D:
|
||||||
#
|
#
|
||||||
TZ=UTZ "$LS_TOOL" -D '%FT%T+00:00' -ld "$TOP_FILE" > /dev/null 2>&1
|
TZ=UTC "$LS_TOOL" -D '%FT%T+00:00' -ld "$TOP_FILE" > /dev/null 2>&1
|
||||||
status="$?"
|
status="$?"
|
||||||
if [[ $status -eq 0 ]]; then
|
if [[ $status -eq 0 ]]; then
|
||||||
MODTIME_METHOD="ls_D"
|
MODTIME_METHOD="ls_D"
|
||||||
if [[ $V_FLAG -ge 5 ]]; then
|
if [[ $V_FLAG -ge 5 ]]; then
|
||||||
echo "$0: debug[5]: TZ=UTZ $LS_TOOL -D '%FT%T+00:00' -ld works, MODTIME_METHOD: $MODTIME_METHOD" 1>&2
|
echo "$0: debug[5]: TZ=UTC $LS_TOOL -D '%FT%T+00:00' -ld works, MODTIME_METHOD: $MODTIME_METHOD" 1>&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|||||||
+3
-3
@@ -214,7 +214,7 @@ function output_modtime
|
|||||||
status_codes=("${PIPESTATUS[@]}")
|
status_codes=("${PIPESTATUS[@]}")
|
||||||
if [[ ${status_codes[*]} =~ [1-9] ]]; then
|
if [[ ${status_codes[*]} =~ [1-9] ]]; then
|
||||||
echo "$0: ERROR: in output_modtime:" \
|
echo "$0: ERROR: in output_modtime:" \
|
||||||
"TZ=UTZ $LS_TOOL -D '%FT%T+00:00' -ld $FILENAME | awk .. failed," \
|
"TZ=UTC $LS_TOOL -D '%FT%T+00:00' -ld $FILENAME | awk .. failed," \
|
||||||
"error codes: ${status_codes[*]}" 1>&2
|
"error codes: ${status_codes[*]}" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -781,12 +781,12 @@ else
|
|||||||
|
|
||||||
# Try ls -D:
|
# Try ls -D:
|
||||||
#
|
#
|
||||||
TZ=UTZ "$LS_TOOL" -D '%FT%T+00:00' -ld "$TOP_FILE" > /dev/null 2>&1
|
TZ=UTC "$LS_TOOL" -D '%FT%T+00:00' -ld "$TOP_FILE" > /dev/null 2>&1
|
||||||
status="$?"
|
status="$?"
|
||||||
if [[ $status -eq 0 ]]; then
|
if [[ $status -eq 0 ]]; then
|
||||||
MODTIME_METHOD="ls_D"
|
MODTIME_METHOD="ls_D"
|
||||||
if [[ $V_FLAG -ge 5 ]]; then
|
if [[ $V_FLAG -ge 5 ]]; then
|
||||||
echo "$0: debug[5]: TZ=UTZ $LS_TOOL -D '%FT%T+00:00' -ld works, MODTIME_METHOD: $MODTIME_METHOD" 1>&2
|
echo "$0: debug[5]: TZ=UTC $LS_TOOL -D '%FT%T+00:00' -ld works, MODTIME_METHOD: $MODTIME_METHOD" 1>&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|||||||
+2
-2
@@ -104,7 +104,7 @@ export LC_ALL="C"
|
|||||||
|
|
||||||
# set variables referenced in the usage message
|
# set variables referenced in the usage message
|
||||||
#
|
#
|
||||||
export VERSION="2.0.0 2025-03-13"
|
export VERSION="2.0.1 2025-08-23"
|
||||||
NAME=$(basename "$0")
|
NAME=$(basename "$0")
|
||||||
export NAME
|
export NAME
|
||||||
export V_FLAG=0
|
export V_FLAG=0
|
||||||
@@ -817,7 +817,7 @@ if [[ -n $REBUILD_TARBALL ]]; then
|
|||||||
|
|
||||||
# determine the timestamp of now
|
# determine the timestamp of now
|
||||||
#
|
#
|
||||||
TAR_TIMESTAMP=$(TZ=UTZ date '+%s')
|
TAR_TIMESTAMP=$(TZ=UTC date '+%s')
|
||||||
status="$?"
|
status="$?"
|
||||||
export TAR_TIMESTAMP
|
export TAR_TIMESTAMP
|
||||||
if [[ $status -ne 0 ]]; then
|
if [[ $status -ne 0 ]]; then
|
||||||
|
|||||||
+2
-2
@@ -104,7 +104,7 @@ export LC_ALL="C"
|
|||||||
|
|
||||||
# set variables referenced in the usage message
|
# set variables referenced in the usage message
|
||||||
|
|
||||||
export VERSION="2.0.0 2025-03-13"
|
export VERSION="2.0.1 2025-08-23"
|
||||||
NAME=$(basename "$0")
|
NAME=$(basename "$0")
|
||||||
export NAME
|
export NAME
|
||||||
export V_FLAG=0
|
export V_FLAG=0
|
||||||
@@ -921,7 +921,7 @@ if [[ -n $REBUILD_TARBALL ]]; then
|
|||||||
|
|
||||||
# determine the timestamp of now
|
# determine the timestamp of now
|
||||||
#
|
#
|
||||||
TAR_TIMESTAMP=$(TZ=UTZ date '+%s')
|
TAR_TIMESTAMP=$(TZ=UTC date '+%s')
|
||||||
status="$?"
|
status="$?"
|
||||||
export TAR_TIMESTAMP
|
export TAR_TIMESTAMP
|
||||||
if [[ $status -ne 0 ]]; then
|
if [[ $status -ne 0 ]]; then
|
||||||
|
|||||||
Reference in new issue
Block a user