1#!/bin/sh
2fdl(){
3 cmd_get=${cmd_get:-"$(
4 command -v aria2c ||
5 command -v axel ||
6 command -v curl ||
7 command -v wget ||
8 command -v wget2
9 )"}
10 # printf "$cmd_get\n"
11}
12_dl(){
13fdl
14case ${cmd_get##*/} in
15 aria2c) set -- -d / -o "$@" ;;
16 axel) set -- -o "$@" ;;
17 curl) set -- -fLo "$@" ;;
18 wget|wget2) set -- -O "$@" ;;
19esac
20$cmd_get "$@"
21}