Fix typo, fix if condition

This commit is contained in:
Jan Jastrow 2024-08-10 00:49:46 +02:00
parent 6a4d49cb73
commit 49b9c9f0d2

View File

@ -105,7 +105,7 @@ function dl() {
echo "usage: dl url (directory)"
return
fi
if [[ -x $(which aria2) ]]; then
if [[ -x $(which aria2c) ]]; then
aria2c --dir="$HOME/Downloads" --continue=true --max-connection-per-server=5 "$1"
else
(cd "$HOME/Downloads" && curl -O "$1")