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

This commit is contained in:
Nianyu Shen
2025-09-10 22:08:08 -07:00
committed by GitHub
parent edc1f0a4ef
commit 292dffb423
2 changed files with 3 additions and 4 deletions

0
.gitleaksignore Normal file
View File

View File

@@ -1,8 +1,7 @@
#!/bin/bash -x
#!/bin/sh -x
CONTENT_PATH=$1
mkdir -p /var/lib/rancher/rke2/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/rke2/agent/images
done