Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/check-for-epoch-bump.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

# Areas of possible improvement:
# Areas of possible improvement:
# Check the git remotes to see if this is a package repo
# Exclude certain filenames like "pombump-deps.yaml", related. Probably could be done in the hook config or in the loop.
# Exclude certain filenames like "pombump-deps.yaml", related. Probably could be done in the hook config or in the loop.

# Check for at least one argument
if [ "$#" -lt 1 ]; then
Expand All @@ -15,7 +15,7 @@ epoch_grep() {
}

epoch_sed() {
sed -r 's/^[[:space:]]+epoch:[[:space:]]+([0-9])+/\1/'
sed -r 's/^[[:space:]]+epoch:[[:space:]]+([0-9])+.*$/\1/'
}

for yaml_file in "$@"; do
Expand Down
Loading