New Script: quickdl.sh: aria2 script
Former-commit-id: 4c62da68a3eace8530a9c6c604ce1dd47de56092
This commit is contained in:
parent
6ba384b2bf
commit
70725bfc6d
24
quickdl.sh
Executable file
24
quickdl.sh
Executable file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
function chkDeps(){
|
||||
|
||||
if [ ! -f "/usr/bin/aria2c" ];then
|
||||
echo -e "Please Download 'aria2' with your package manager\n"
|
||||
echo "Ubuntu: sudo apt install aria2"
|
||||
echo "Fedora/RedHat: sudo dnf install aria2"
|
||||
echo "Void Linux: sudo xbps-install aria2"
|
||||
exit
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
|
||||
case "${0}" in
|
||||
|
||||
*)
|
||||
chkDeps
|
||||
aria2c -x10 -k1M "${1}"
|
||||
;;
|
||||
|
||||
|
||||
esac
|
Loading…
x
Reference in New Issue
Block a user