From d564c542921435e7a98be470395966f686871c92 Mon Sep 17 00:00:00 2001 From: zyb Date: Mon, 24 Jun 2024 12:16:13 +0800 Subject: [PATCH] modified: .github/workflows/mikrotik_patch.yml --- .github/workflows/mikrotik_patch.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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