If QQ2_DIR is already set, use that value (for testing)

This commit is contained in:
Jesse Gardner 2021-04-25 20:49:26 -07:00
parent cd007a6716
commit 94d3727614
1 changed files with 3 additions and 1 deletions

View File

@ -3119,7 +3119,9 @@ return 0
if ! ((QQ2_NOEXECUTE)); then
open_pipe
if [[ -e "${HOME:?}/.config/qq2clone" ]]; then
if [[ -n "$QQ2_DIR" ]]; then
: # If already set, use existing value
elif [[ -e "${HOME:?}/.config/qq2clone" ]]; then
QQ2_DIR="$(<"${HOME}/.config/qq2clone")"
else
QQ2_DIR="${HOME}/storage-qq2clone"