From 6bab0e49c06d6702f5c1856047cb85e7a9f425c1 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Thu, 29 Oct 2020 09:24:59 -0400 Subject: silence grep error output --- selfpublish.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfpublish.sh b/selfpublish.sh index eb3c5d9..fd6b67d 100644 --- a/selfpublish.sh +++ b/selfpublish.sh @@ -40,7 +40,7 @@ apt_install() write_line_once() { local line="$2" target_file="$1" - if grep -qF "$line" "$target_file" + if [ -e "$target_file" ] && grep -qF "$line" "$target_file" then return else -- cgit v1.2.3