fixed playlist directory setting

This commit is contained in:
Emma Tebibyte 2023-11-21 12:37:19 -07:00
parent f0c2c1bf21
commit 76b633cbdb
Signed by: emma
GPG Key ID: 6D661C738815E7DD

3
yt
View File

@ -21,7 +21,8 @@ set -e
test -z "$DEBUG" || set -x
test -z "$XDG_CACHE_HOME" && cachefile="$HOME/.cache/yt.cache" \
|| cachefile="$XDG_CACHE_HOME/yt.cache"
test -z "$YT_PL_DIR" \
test -n "$YT_PL_DIR" \
|| test -n "$XDG_DATA_HOME" && YT_PL_DIR="$XDG_DATA_HOME/yt" \
|| YT_PL_DIR="$HOME/.local/share/yt"