zsc.sh: fix variable for weekday and week number detection

This commit is contained in:
Alice Gaudon 2021-04-06 10:26:03 +02:00
parent cf25b74a1a
commit 7ed6a15ec3

2
zsc.sh
View File

@ -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]} | "