From 3cece097ef738b5d954b57684b221ee52e39dfe8 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Thu, 31 Mar 2022 08:29:41 +0200 Subject: make grep quiet --- scripts/savepads.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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 -- cgit v1.2.3