If QQ2_DIR is already set, use that value (for testing)
This commit is contained in:
parent
cd007a6716
commit
94d3727614
4
qq2clone
4
qq2clone
|
@ -3119,7 +3119,9 @@ return 0
|
||||||
|
|
||||||
if ! ((QQ2_NOEXECUTE)); then
|
if ! ((QQ2_NOEXECUTE)); then
|
||||||
open_pipe
|
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")"
|
QQ2_DIR="$(<"${HOME}/.config/qq2clone")"
|
||||||
else
|
else
|
||||||
QQ2_DIR="${HOME}/storage-qq2clone"
|
QQ2_DIR="${HOME}/storage-qq2clone"
|
||||||
|
|
Loading…
Reference in New Issue