HEX
Server: Apache/2.4.41 (FreeBSD) OpenSSL/1.0.2s mod_fcgid/2.3.9
System: FreeBSD salazo 12.0-RELEASE-p1303-ZFS hostBSD 12.0-RELEASE-p1303-ZFS DMR amd64
User: admin (1000)
PHP: 7.4.3
Disabled: NONE
Upload Files
File: /usr/ports/textproc/google-translate-cli/files/patch-include_Utils.awk
--- 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, "\"")