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

Remove trailing \n from texttobase64.sh

Without this, all base64 strings will get a trailing \n in their encoded
form
This commit is contained in:
Romuald Brunet
2016-02-11 10:40:18 +01:00
parent 33e239ea90
commit 0492c974f0

View File

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