Open meliache opened 1 year ago
If $XDG_CACHE_HOME is set, use that, otherwise default to ~/.cache
$XDG_CACHE_HOME
~/.cache
Because the logdir can now contain whitespace, surround the rhs with double quotes, inside which shell variables are still expanded.
Further use && instead of ; for early failure if one of the statements in the expression fails.
&&
;
If
$XDG_CACHE_HOME
is set, use that, otherwise default to~/.cache
Because the logdir can now contain whitespace, surround the rhs with double quotes, inside which shell variables are still expanded.
Further use
&&
instead of;
for early failure if one of the statements in the expression fails.