Wrong redirect order

This commit is contained in:
斟酌 鵬兄 2023-09-17 23:42:07 +09:00
parent 612ab0a434
commit 3395589b9e

View File

@ -295,7 +295,7 @@ function kstore-dl-s3au {
p="https://git.k8s.astropenguin.net/penguin/s3-arch-utils/raw/branch/master"
_NAME=$1
which "$_NAME" 2>&1 > /dev/null
which "$_NAME" > /dev/null 2>&1
if [ $? -ne 0 ]; then
tmp=$( mktemp )
__download "$p/$_NAME" > $tmp