Browse Source

Add proper quoting

Alois Mahdal 6 years ago
parent
commit
35e104843e
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      bin/notifirc

+ 2
- 2
bin/notifirc View File

@@ -83,10 +83,10 @@ trim() {
83 83
     local suff=""
84 84
     while true;
85 85
     do
86
-        test $lines_read -ge $limit_l && break
86
+        test $lines_read -ge "$limit_l" && break
87 87
         IFS= read -r line || break
88 88
         (( lines_read++ ))
89
-        test ${#line} -gt $limit_c && suff=…
89
+        test ${#line} -gt "$limit_c" && suff=…
90 90
         line=${line:0:$limit_c}$suff
91 91
         echo "$line"
92 92
     done