mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-11-23 02:49:57 +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