zsc.sh: fix variable for weekday and week number detection
This commit is contained in:
parent
cf25b74a1a
commit
7ed6a15ec3
2
zsc.sh
2
zsc.sh
@ -59,7 +59,7 @@ handle_dataset() {
|
|||||||
for s in "${SNAPSHOTS[@]}"; do
|
for s in "${SNAPSHOTS[@]}"; do
|
||||||
sdate=$(echo "$s" | awk 'match($0, /.+@'"$PREFIX"'(.+)/, a) {print a[1]}')
|
sdate=$(echo "$s" | awk 'match($0, /.+@'"$PREFIX"'(.+)/, a) {print a[1]}')
|
||||||
|
|
||||||
scomp=($(split_date "$sdate") $(date -d "$stripped_date" "+%u %W"))
|
scomp=($(split_date "$sdate") $(date -d "$sdate" "+%u %W"))
|
||||||
|
|
||||||
echo -n "${scomp[3]} ${scomp[4]} | "
|
echo -n "${scomp[3]} ${scomp[4]} | "
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user