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