diff options
author | Andrew Cady <d@cryptonomic.net> | 2020-10-29 09:24:59 -0400 |
---|---|---|
committer | Andrew Cady <d@cryptonomic.net> | 2020-10-29 09:24:59 -0400 |
commit | 6bab0e49c06d6702f5c1856047cb85e7a9f425c1 (patch) | |
tree | 66f36a6a664c33cef0986f2bd5015215f6361dc7 | |
parent | 1198083effbf1defec910d98d44e0db3eb0f6ed3 (diff) |
silence grep error output
-rw-r--r-- | selfpublish.sh | 2 |
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() | |||
40 | write_line_once() | 40 | write_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 |