forked from MetaCubeX/mihomo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a213e68
commit 4e469bd
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |