summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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