1
0
mirror of https://github.com/minimaxir/big-list-of-naughty-strings.git synced 2025-09-02 18:32:40 +02:00

Avoid globbing and word splitting when expanding variables

This commit is contained in:
Victor Engmark
2018-11-17 07:10:25 +13:00
parent ea0be30283
commit b2722e6b19

View File

@@ -8,8 +8,8 @@ do
firstChar="${line:0:1}"
if [[ "$firstChar" != "$commentChar" ]] && [[ -n "$firstChar" ]]
then
echo -n $line | base64
echo -n "$line" | base64
else
echo $line
echo "$line"
fi
done <blns.txt