Skip to content

Commit

Permalink
date -v doesn't work on most Linux distros, rewrote so it works on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisBuytaert committed Nov 19, 2018
1 parent 3fd6761 commit 5db6ba9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utilities/add_new_event.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash


set -e

cd `dirname ${0}`
Expand All @@ -18,7 +19,8 @@ SEDCMD(){
}

if [[ $(date +"%m") -ge 10 ]]; then
default_year=$(date -v +1y "+%Y")
# default_year=$(date -v +1y "+%Y")
default_year=$(echo $(echo `date +"%Y"` + 1) | bc)
else
default_year=$(date +"%Y")
fi
Expand Down

0 comments on commit 5db6ba9

Please sign in to comment.