| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/textproc/google-translate-cli/files/ |
Upload File : |
--- include/Utils.awk.orig 2020-10-15 13:53:06 UTC
+++ include/Utils.awk
@@ -233,6 +233,8 @@ function dumpX(text, group, command, temp) {
function base64(text, command, temp) {
if (detectProgram("uname", "-s", 1) == "Linux") # GNU base64 wraps lines by default
command = "echo -n " parameterize(text) PIPE "base64 -w0"
+ if (detectProgram("gbase64", "--version")) # GNU base64 is sometimes available as gbase64
+ command = "echo -n " parameterize(text) PIPE "gbase64 -w0"
else
command = "echo -n " parameterize(text) PIPE "base64"
command = "bash -c " parameterize(command, "\"")