diff --git a/.github/pkg.sh b/.github/pkg.sh index 546d906409..c3f7e7cf49 100755 --- a/.github/pkg.sh +++ b/.github/pkg.sh @@ -1,9 +1,11 @@ #!/bin/bash -cd /mnt -list=($(ls | grep deb)) +cd /root +list=($(ls /mnt | grep deb)) for ((i = 0; i < ${#list[@]}; i++)); do - debtap -Q ${list[i]} name=$(echo ${list[i]} | awk -F '.' '{print $1}') - mv mihomo*.pkg.tar.zst ${name}.pkg.tar.zst + mv /mnt/${list[i]} ./ + debtap -Q ${list[i]} + mv mihomo*.pkg.tar.zst ${name}.pkg.tar.zst + mv ${name}.pkg.tar.zst /mnt/ done \ No newline at end of file