1
0
mirror of https://github.com/minimaxir/big-list-of-naughty-strings.git synced 2025-09-09 13:41:11 +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 while read p
do do
firstChar=${p:0:1} firstChar=${p:0:1}
if [[ "$firstChar" != "$commentChar" && "$firstChar" != "" ]] if [[ "$firstChar" != "$commentChar" ]] && [[ -n "$firstChar" ]]
then then
echo -n $p | base64 echo -n $p | base64
else else