summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2020-10-29 09:24:59 -0400
committerAndrew Cady <d@cryptonomic.net>2020-10-29 09:24:59 -0400
commit6bab0e49c06d6702f5c1856047cb85e7a9f425c1 (patch)
tree66f36a6a664c33cef0986f2bd5015215f6361dc7
parent1198083effbf1defec910d98d44e0db3eb0f6ed3 (diff)
silence grep error output
-rw-r--r--selfpublish.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/selfpublish.sh b/selfpublish.sh
index eb3c5d9..fd6b67d 100644
--- a/selfpublish.sh
+++ b/selfpublish.sh
@@ -40,7 +40,7 @@ apt_install()
40write_line_once() 40write_line_once()
41{ 41{
42 local line="$2" target_file="$1" 42 local line="$2" target_file="$1"
43 if grep -qF "$line" "$target_file" 43 if [ -e "$target_file" ] && grep -qF "$line" "$target_file"
44 then 44 then
45 return 45 return
46 else 46 else