mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-03-05 02:40:17 +00:00
feat: set Downloads dir from xdg-user-dir DOWNLOAD when available
This commit is contained in:
committed by
AJ ONeal
parent
40f37cb916
commit
4723810e2b
@@ -32,7 +32,11 @@ __bootstrap_webi() {
|
||||
#PKG_FORMATS=
|
||||
WEBI_UA="$(uname -a)"
|
||||
WEBI_PKG_DOWNLOAD=""
|
||||
WEBI_PKG_PATH="${HOME}/Downloads/webi/${PKG_NAME:-error}/${WEBI_VERSION:-latest}"
|
||||
WEBI_DOWNLOAD_DIR="${HOME}/Downloads"
|
||||
if [ -n "$(command -v xdg-user-dir)" ] && [ "$(xdg-user-dir DOWNLOAD)" != "$HOME" ]; then
|
||||
WEBI_DOWNLOAD_DIR="$(xdg-user-dir DOWNLOAD)"
|
||||
fi
|
||||
WEBI_PKG_PATH="${WEBI_DOWNLOAD_DIR}/webi/${PKG_NAME:-error}/${WEBI_VERSION:-latest}"
|
||||
export WEBI_HOST
|
||||
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user