Skip to content

Commit 3b85f1e

Browse files
markchallonerMark Challoner
authored andcommitted
Fix OSX date parsing
1 parent 773edd6 commit 3b85f1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-semver.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ update() {
184184
then
185185
case "$OSTYPE" in
186186
darwin*|bsd*)
187-
date_cmd=$(date -j -f "%Y-%m-%d")
187+
date_cmd="date -j -f %Y-%m-%d"
188188
time_curr=$(${date_cmd} "${date_curr}" "+%s")
189189
;;
190190
*)

0 commit comments

Comments
 (0)