Browse Source

Add proper quoting

Alois Mahdal 7 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
     local suff=""
83
     local suff=""
84
     while true;
84
     while true;
85
     do
85
     do
86
-        test $lines_read -ge $limit_l && break
86
+        test $lines_read -ge "$limit_l" && break
87
         IFS= read -r line || break
87
         IFS= read -r line || break
88
         (( lines_read++ ))
88
         (( lines_read++ ))
89
-        test ${#line} -gt $limit_c && suff=…
89
+        test ${#line} -gt "$limit_c" && suff=…
90
         line=${line:0:$limit_c}$suff
90
         line=${line:0:$limit_c}$suff
91
         echo "$line"
91
         echo "$line"
92
     done
92
     done