fixed ls -D mode in bin/gen-sitemap.sh
In `bin/gen-sitemap.sh` when the MODTIME_METHOD is "ls_D", the file used via ls -D has been fixed. Changed `bin/gen-sitemap.sh` VERSION from "1.3.1 2024-03-18" to "1.3.2 2024-03-18".
This commit is contained in:
1 parent
0833c3e4f0
commit
7e532609c0
1 file changed
+2
-2
+2
-2
@@ -81,7 +81,7 @@ shopt -s globstar # enable ** to match all files and zero or more directories an
|
|||||||
|
|
||||||
# set variables referenced in the usage message
|
# set variables referenced in the usage message
|
||||||
#
|
#
|
||||||
export VERSION="1.3.1 2024-03-18"
|
export VERSION="1.3.2 2024-03-18"
|
||||||
NAME=$(basename "$0")
|
NAME=$(basename "$0")
|
||||||
export NAME
|
export NAME
|
||||||
export V_FLAG=0
|
export V_FLAG=0
|
||||||
@@ -161,7 +161,7 @@ function output_modtime
|
|||||||
# SC2012 (info): Use find instead of ls to better handle non-alphanumeric filenames.
|
# SC2012 (info): Use find instead of ls to better handle non-alphanumeric filenames.
|
||||||
# https://www.shellcheck.net/wiki/SC2012
|
# https://www.shellcheck.net/wiki/SC2012
|
||||||
# shellcheck disable=SC2012
|
# shellcheck disable=SC2012
|
||||||
TZ=UTZ ls -D '%FT%T+00:00' -ld "$TOP_FILE" | awk '{print $6;}'
|
TZ=UTZ ls -D '%FT%T+00:00' -ld "$FILENAME" | awk '{print $6;}'
|
||||||
status0="${PIPESTATUS[0]}"
|
status0="${PIPESTATUS[0]}"
|
||||||
status1="${PIPESTATUS[1]}"
|
status1="${PIPESTATUS[1]}"
|
||||||
if [[ $status0 -ne 0 || $status1 -ne 0 ]]; then
|
if [[ $status0 -ne 0 || $status1 -ne 0 ]]; then
|
||||||
|
|||||||
Reference in new issue
Block a user