aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2022-03-31 08:29:41 +0200
committerLinus Nordberg <linus@nordberg.se>2022-03-31 08:29:47 +0200
commit3cece097ef738b5d954b57684b221ee52e39dfe8 (patch)
tree28efcccdced943a9fc56d9d3d7b774e22cbbae3e
parenta2fa6a1350e09f004aa48afb8261e20c2305320c (diff)
make grep quiet
-rwxr-xr-xscripts/savepads.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/savepads.sh b/scripts/savepads.sh
index 852255c..f63cc66 100755
--- a/scripts/savepads.sh
+++ b/scripts/savepads.sh
@@ -30,7 +30,7 @@ function main() {
curl "$src" > "$dst" 2>/dev/null ||
die_with_error "must fetch $pad"
- grep "$match" "$dst" ||
+ grep -q "$match" "$dst" ||
die_with_error "expected \"$match\" to be in $src"
find "$dir" -type f -mtime +$age_days -regextype posix-extended -regex "^.*[0-9]{6}-[0-9]{6}_$pad$" -delete