diff --git a/.github/workflows/mikrotik_patch.yml b/.github/workflows/mikrotik_patch.yml index 894d7f0..28e1788 100644 --- a/.github/workflows/mikrotik_patch.yml +++ b/.github/workflows/mikrotik_patch.yml @@ -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