New Script: quickdl.sh: aria2 script

Former-commit-id: 4c62da68a3eace8530a9c6c604ce1dd47de56092
This commit is contained in:
mollusk 2018-09-05 13:38:06 -07:00
parent 6ba384b2bf
commit 70725bfc6d

24
quickdl.sh Executable file
View 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