Scripts: Allow user override on tagged version

In the case of a missing month or a minor version, need to allow user
defined overrides.
This commit is contained in:
Ryan Houdek committed 2022-06-04 18:06:28 -07:00
1 parent cae4f2f873
commit 952e157770
1 file changed
+3 -2
+3 -2
View File
@@ -1,7 +1,8 @@
#!/bin/env bash
PREVIOUS=FEX-$(date --date='-1 month' +%y%m)
CURRENT=FEX-$(date +%y%m)
# Allow release maintainer to override PREVIOUS and CURRENT by setting it before launching the script
PREVIOUS=${PREVIOUS:-FEX-$(date --date='-1 month' +%y%m)}
CURRENT=${CURRENT:-FEX-$(date +%y%m)}
if ! git rev-list $PREVIOUS > /dev/null 2>&1 ;
then