penguin/utils

my env utils

commit 9bee126e82a0e14477e6909e5c0500e5500de771

author斟酌 鵬兄 <tgckpg@gmail.com>
date2025-08-06T16:43:46Z
subjectFixed kcontext use s3-arch broken on passphrase
commit 9bee126e82a0e14477e6909e5c0500e5500de771
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date:   2025-08-06T16:43:46Z

    Fixed kcontext use s3-arch broken on passphrase
---
 bash/sources/17_kcontext | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bash/sources/17_kcontext b/bash/sources/17_kcontext
index f73c946..7c933fc 100644
--- a/bash/sources/17_kcontext
+++ b/bash/sources/17_kcontext
@@ -172,6 +172,9 @@ function _kcontext-s3-arch {
 				echo "Please specify a context name" >&2
 				return 1
 			fi
+
+			_kstoreinit || return 1
+
 			_URL=$( kstore get "kcontext" "s3-arch.bucket.$_NAME" 2> /dev/null )
 			if [ $? -ne 0 ]; then
 				echo "No such context: $_NAME" >&2