mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-08-28 08:21:14 +00:00
Add QT GUI install program
This commit is contained in:
28
LinuxGUI/EXLIB/download_lib.sh
Normal file
28
LinuxGUI/EXLIB/download_lib.sh
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "please input url"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -n "$2" ]; then
|
||||
proxy_opt="-x $2"
|
||||
fi
|
||||
|
||||
rm -rf download
|
||||
mkdir -p download
|
||||
cd download
|
||||
|
||||
grep pool ../README.txt | while read line; do
|
||||
a="$line"
|
||||
b=$(basename "$a")
|
||||
echo "downloading $b ..."
|
||||
curl -s $1/debian/"$a" $proxy_opt -o "$b"
|
||||
|
||||
a=$(echo $line | sed "s/mips64el/i386/g")
|
||||
b=$(basename "$a")
|
||||
echo "downloading $b ..."
|
||||
curl -s $1/debian/"$a" $proxy_opt -o "$b"
|
||||
done
|
||||
|
||||
cd ..
|
Reference in New Issue
Block a user