1
0
mirror of https://github.com/minimaxir/big-list-of-naughty-strings.git synced 2025-09-03 02:42:36 +02:00

Use idiomatic test statements

This commit is contained in:
Victor Engmark
2018-11-17 07:06:34 +13:00
parent 70e19cae9f
commit e974868c76

View File

@@ -2,7 +2,7 @@ commentChar="#"
while read p
do
firstChar=${p:0:1}
if [[ "$firstChar" != "$commentChar" && "$firstChar" != "" ]]
if [[ "$firstChar" != "$commentChar" ]] && [[ -n "$firstChar" ]]
then
echo -n $p | base64
else