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:
@@ -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
|
||||
|
Reference in New Issue
Block a user