From 0492c974f0864105671fbe09fe13d4dffafafadc Mon Sep 17 00:00:00 2001 From: Romuald Brunet Date: Thu, 11 Feb 2016 10:40:18 +0100 Subject: [PATCH] Remove trailing \n from texttobase64.sh Without this, all base64 strings will get a trailing \n in their encoded form --- scripts/texttobase64.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/texttobase64.sh b/scripts/texttobase64.sh index 791f21c..04c1feb 100755 --- a/scripts/texttobase64.sh +++ b/scripts/texttobase64.sh @@ -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