mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-11-26 20:21:01 +01:00
Fix typo, fix if condition
This commit is contained in:
parent
6a4d49cb73
commit
49b9c9f0d2
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user