fix: make import.sh POSIX compatiable (#115)

This commit is contained in:
Nianyu Shen
2025-09-10 22:07:38 -07:00
committed by GitHub
parent 6910673761
commit 15264c1677
2 changed files with 3 additions and 2 deletions

0
.gitleaksignore Normal file
View File

View File

@@ -1,7 +1,8 @@
#!/bin/sh
set -x
CONTENT_PATH=$1
mkdir -p /var/lib/rancher/k3s/agent/images
for tarfile in $(find $CONTENT_PATH -name "*.tar" -type f)
do
find -L "$CONTENT_PATH" -name "*.tar" -type f | while read -r tarfile; do
cp $tarfile /var/lib/rancher/k3s/agent/images
done