Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
Fix quarter directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jgmize committed Jan 6, 2020
1 parent 7905b26 commit cc3fc4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions k8s-nbconvert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ if [[ "$2" =~ "commit" ]]; then
NOTEBOOK_PATH="$YM/$NOTEBOOK"
elif [[ $2 =~ quarter ]]; then
MONTH=$(date --date="1 month ago" +%m)
if $MONTH in 1 2 3; then
if (( $MONTH <= 3 )); then
Q=Q1
elif $MONTH in 4 5 6; then
elif (( $MONTH <= 6 )); then
Q=Q2
elif $MONTH in 7 8 9; then
elif (( $MONTH <= 9 )); then
Q=Q3
elif $MONTH in 10 11 12; then
elif (($MONTH <= 12 )); then
Q=Q4
fi
YQ=$(date --date="1 month ago" +%Y)/$Q
Expand Down

0 comments on commit cc3fc4e

Please sign in to comment.