From 7ed6a15ec3c1e081d5602f99c02ee609a8cab764 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Tue, 6 Apr 2021 10:26:03 +0200 Subject: [PATCH] zsc.sh: fix variable for weekday and week number detection --- zsc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsc.sh b/zsc.sh index a0d8449..d1accbc 100755 --- a/zsc.sh +++ b/zsc.sh @@ -59,7 +59,7 @@ handle_dataset() { for s in "${SNAPSHOTS[@]}"; do 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]} | "