Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
xishang0128 committed Mar 8, 2024
1 parent a213e68 commit 4e469bd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/pkg.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4e469bd

Please sign in to comment.