diff options
author | Erich Eckner <git@eckner.net> | 2018-01-18 16:05:26 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-01-18 16:05:26 +0100 |
commit | 44561eb1f209e79664164afdb95f3ca67f365693 (patch) | |
tree | d2ad16685c4c998ceba96f824768c4fd5e69dab6 /bin/mysql-functions | |
parent | 633a9409ae245b06ad5ae6a9b68853879cad03dc (diff) | |
download | builder-44561eb1f209e79664164afdb95f3ca67f365693.tar.xz |
bin/mysql-functions: accellerate base64_encode_each
Diffstat (limited to 'bin/mysql-functions')
-rwxr-xr-x | bin/mysql-functions | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/bin/mysql-functions b/bin/mysql-functions index 14966d2..bcfb3ae 100755 --- a/bin/mysql-functions +++ b/bin/mysql-functions @@ -9,10 +9,14 @@ mysql_command='mysql buildmaster -e' # base64_encode_each encode each line of stdin with base64 base64_encode_each() { - parallel -N1 -l1 --pipe ' - tr -d "\n" | base64 -w0 - printf "\n" - ' + local line + + while read -r line; do + printf '%s' \ + "${line}" | \ + base64 -w0 + printf '\n' + done } # mysql_add_package_source $pkgbase $git_revision $mod_git_revision $upstream_package_repository |