From: AJ ONeal Date: Mon, 4 May 2020 10:59:25 +0000 (+0000) Subject: PATH and path bugfixes X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=0e4ec7e16b40653451f35892e98a2ca4fbc10f8c;p=webi-installers%2F.git PATH and path bugfixes --- diff --git a/webi/template.bash b/webi/template.bash index 8c42305..b95c050 100644 --- a/webi/template.bash +++ b/webi/template.bash @@ -51,14 +51,16 @@ webi_download() { if [ -n "${2:-}" ]; then my_dl="$2" else - my_dl="$WEBI_PKG_FILE" + my_dl="$HOME/Downloads/$WEBI_PKG_FILE" fi if [ -n "$WEBI_WGET" ]; then # wget has resumable downloads - wget -c "$my_url" --user-agent="wget $WEBI_UA" -O "$my_dl" + # TODO wget -c --content-disposition "$my_url" + wget -q --show-progress -c "$my_url" --user-agent="wget $WEBI_UA" -O "$my_dl" else # BSD curl is non-resumable, hence we don't bother + # TODO curl -fsSL --remote-name --remote-header-name --write-out "$my_url" curl -fSL "$my_url" -H "User-Agent: curl $WEBI_UA" -o "$my_dl" fi } @@ -95,7 +97,8 @@ webi_path_add() { export PATH="$HOME/.local/bin:$PATH" fi - pathman add "$1" + # in case pathman was recently installed and the PATH not updated + "$HOME/.local/bin/pathman" add "$1" } ##