mirror of
https://github.com/kairos-io/provider-rke2.git
synced 2025-09-28 13:36:18 +00:00
fix: make import.sh POSIX compatiable (#84)
This commit is contained in:
@@ -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
|
||||
done
|
||||
|
Reference in New Issue
Block a user