diff options
author | zhanghua000 | 2022-10-26 16:23:22 +0800 |
---|---|---|
committer | zhanghua000 | 2022-10-26 16:23:22 +0800 |
commit | 37b232e22f367370d33ea3f7bddb41b6d606a0ef (patch) | |
tree | 25defd8fd1c1fc7362c84cf6a20a401cebeb4590 /update-aria2-tracker | |
parent | 58bf3c46184f3d7e3ed506ab91f027ed8f1f14ef (diff) | |
download | aur-37b232e22f367370d33ea3f7bddb41b6d606a0ef.tar.gz |
Rewrite code
Diffstat (limited to 'update-aria2-tracker')
-rw-r--r-- | update-aria2-tracker | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/update-aria2-tracker b/update-aria2-tracker index 3850c6fbd62b..43a6b814c7d6 100644 --- a/update-aria2-tracker +++ b/update-aria2-tracker @@ -3,6 +3,7 @@ set -e function get_aria2_home(){ + [[ $(id -nu) == "aria2" ]] && echo /etc/aria2cd && return 0 for path in ${HOME}/.aria2 ${XDG_CONFIG_HOME:-${HOME}/.config}/aria2 do [[ -f ${path}/aria2.conf ]] && echo ${path} && return 0 |