github/list_old_branches.sh: use 120 days by default
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
3fb92592a2
commit
a3d5545fd9
|
@ -7,7 +7,11 @@ function getCommitUnix() {
|
|||
git show --no-patch --no-notes --pretty='%at' ${1}
|
||||
}
|
||||
|
||||
OLDER_THAN_DAYS="90"
|
||||
OLDER_THAN_DAYS="120"
|
||||
if [[ ! -z "${1}" ]]; then
|
||||
OLDER_THAN_DAYS="${1}"
|
||||
fi
|
||||
|
||||
CURRENT_TIME=$(date +%s)
|
||||
OLDER_THAN_UNIX=$(( ${OLDER_THAN_DAYS} * 86400 ))
|
||||
OLDER_THAN=$(( ${CURRENT_TIME} - ${OLDER_THAN_UNIX} ))
|
||||
|
|
Loading…
Reference in New Issue