index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-12-04 13:25:58 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-12-04 13:25:58 +0100 |
commit | 4cdeb55f66d0c3605b2b6ed16a103316cc5c414b (patch) | |
tree | 7f63cbd49ff33db4a77c81eb726104ed76e18e47 /bin/mysql-functions | |
parent | dc8edb511b07f4729436bb8f883d4b73845a9d43 (diff) |
-rwxr-xr-x | bin/mysql-functions | 18 |
diff --git a/bin/mysql-functions b/bin/mysql-functions index d9962a9..5148773 100755 --- a/bin/mysql-functions +++ b/bin/mysql-functions @@ -137,3 +137,21 @@ mysql_show_binary_package() { ' )" --html } + +# mysql_add_install_target $install_target + +# shellcheck disable=SC2016,2086 +mysql_add_install_target() { + local install_target + install_target=$( + printf "%s" "$1" | \ + base64 -w0 + ) + + ${mysql_command} "$( + printf 'INSERT IGNORE INTO `install_targets` (`name`)' + printf ' VALUES (from_base64("%s"))' \ + "${install_target}" + printf '\n' + )" +} |