From f7b735d5ab552644f60391dd7aa1a552dc79fc96 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 17 Mar 2023 08:36:52 +0530 Subject: [PATCH] ssh kitten: Fix failure when remote system has no base64 but does have openssl --- shell-integration/ssh/bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell-integration/ssh/bootstrap.sh b/shell-integration/ssh/bootstrap.sh index d2c3f14bb..a71d0b122 100644 --- a/shell-integration/ssh/bootstrap.sh +++ b/shell-integration/ssh/bootstrap.sh @@ -47,7 +47,7 @@ if command -v base64 > /dev/null 2> /dev/null; then base64_decode() { command base64 -d; } elif command -v openssl > /dev/null 2> /dev/null; then base64_encode() { command openssl enc -A -base64; } - base64_decode() { command openssl enc -d -base64; } + base64_decode() { command openssl enc -A -d -base64; } elif command -v b64encode > /dev/null 2> /dev/null; then base64_encode() { command b64encode - | command sed '1d;$d' | command tr -d \\n\\r; } base64_decode() { command fold -w 76 | command b64decode -r; }