Remove the leading zero in the month, which breaks on the 8th month of the year master
authorZachary Seguin <ztseguin@csclub.uwaterloo.ca>
Mon, 1 Aug 2016 04:22:21 +0000 (00:22 -0400)
committerZachary Seguin <ztseguin@csclub.uwaterloo.ca>
Mon, 1 Aug 2016 04:22:21 +0000 (00:22 -0400)
generate-expire-config

index aa41a92..5fed7e0 100755 (executable)
@@ -17,7 +17,7 @@ EXPIRED_USERS=$(mktemp "/tmp/expired_users.XXXX")
 
 # Get the current term
 YEAR=$(date '+%Y')
-MONTH=$(date '+%m')
+MONTH=$(date '+%-m')
 TERM_START_MONTH=$(($MONTH - (($MONTH - 1) % 4)))
 
 # NOTE: This is configured to give 1 months grace period