commit f246d8bd24f995a02b9d3c2b1e67aa59709e1078
| author | 斟酌 鵬兄 <tgckpg@gmail.com> |
| date | 2026-06-26T14:07:32Z |
| subject | Update __download to rbash_download |
commit f246d8bd24f995a02b9d3c2b1e67aa59709e1078
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date: 2026-06-26T14:07:32Z
Update __download to rbash_download
---
bash/sources/16_keystore | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/bash/sources/16_keystore b/bash/sources/16_keystore
index 17c26ff..7f6f8a8 100644
--- a/bash/sources/16_keystore
+++ b/bash/sources/16_keystore
@@ -418,7 +418,7 @@ function _kstoredl-s3au {
_NAME=$2
tmp=$( mktemp )
- __download "$p/$_NAME" > $tmp
+ rbash_download "$p/$_NAME" > $tmp
sha256sum $tmp | grep -q "$_CSUM"
if [ $? -eq 0 ]; then
_NAME=$( basename "${_NAME//_/-}" .sh )
@@ -439,7 +439,7 @@ function _kstoredl-kstorecred {
_CSUM="031b4474b8eb8deafbb96df73b79f8b654fd3c2209f041fd34cb6f494791bcd4"
tmp=$( mktemp )
- __download "$p" > $tmp
+ rbash_download "$p" > $tmp
sha256sum $tmp | grep -q "$_CSUM"
if [ $? -eq 0 ]; then
mv $tmp "$RBASH_BIN/$_NAME"
@@ -487,13 +487,13 @@ function _kstoredownload-db {
_DOMAIN="penguins-workspace.s3.ap-southeast-1.astropenguin.net"
- _T=$( __download "https://$_DOMAIN/keystore/latest" )
+ _T=$( rbash_download "https://$_DOMAIN/keystore/latest" )
if [ $? -ne 0 ]; then
return 1
fi
_TMP=$( mktemp )
- __download "https://$_DOMAIN/keystore/$_T.enc" | _kstoredec > $_TMP
+ rbash_download "https://$_DOMAIN/keystore/$_T.enc" | _kstoredec > $_TMP
if [ $? -ne 0 ]; then
return 1
fi