diff options
author | Erich Eckner <git@eckner.net> | 2017-12-08 17:06:06 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-12-08 17:06:06 +0100 |
commit | 720145c24185880aaf6813004779628b04162d77 (patch) | |
tree | 2d792540bb54a903f01685e047f4254088d49dde /bin/mysql-functions | |
parent | 5ada6ae7f4dd3ec4f1fb23f769896eb1ffe785bc (diff) | |
download | builder-720145c24185880aaf6813004779628b04162d77.tar.xz |
bin/mysql-functions: encapsulate base64-encoding in a separate function
Diffstat (limited to 'bin/mysql-functions')
-rwxr-xr-x | bin/mysql-functions | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/mysql-functions b/bin/mysql-functions index 5acf85c..2635318 100755 --- a/bin/mysql-functions +++ b/bin/mysql-functions @@ -6,6 +6,15 @@ mysql_command='mysql buildmaster -e' +# base64_encode_each encode each line of stdin with base64 + +base64_encode_each() { + parallel -N1 -l1 --pipe ' + base64 -w0 + printf "\n" + ' +} + # mysql_add_package_source $pkgbase $git_revision $mod_git_revision $upstream_package_repository # shellcheck disable=SC2016,SC2086 |