modified: .github/workflows/mikrotik_patch.yml

This commit is contained in:
zyb 2024-06-24 12:16:13 +08:00
parent f05c289ff0
commit d564c54292

View File

@ -241,12 +241,10 @@ jobs:
sudo cp syslinux.conf ./install/
sudo rm syslinux.conf
sudo cp linux ./install/
NPK_FILES=$(find ./new_iso/*.npk)
NPK_FILES=($(find ./new_iso/*.npk))
for ((i=1; i<=${#NPK_FILES[@]}; i++))
do
echo $i
echo ${NPK_FILES[$i-1]}
sudo cp ${NPK_FILES[$i-1]} ./install/$i.npk
sudo cp ${NPK_FILES[$i]} ./install/$i.npk
done
sudo umount /dev/nbd0
sudo qemu-nbd -d /dev/nbd0