Skip to content

Commit

Permalink
Don't exit when tenures haven't changed
Browse files Browse the repository at this point in the history
The durations and stats still have to be updated.
  • Loading branch information
bewuethr committed Jun 20, 2021
1 parent 3cbcb79 commit 9d46107
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/slacktenure
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,11 @@ main() {
if ! [[ -s $difffile ]]; then
echo "Nothing changed!" >&2
rm "$difffile"
exit

# Get most recent previous diff
shopt -s globstar
local diffs=(diffs/**/*.diff)
difffile=${diffs[-1]}
fi

local curdir=${BASH_SOURCE[0]%/*}
Expand Down

0 comments on commit 9d46107

Please sign in to comment.