- popd 2>&1 >/dev/null
-}
-
-# use 'pathman' to update $HOME/.config/envman/PATH.env
-webi_path_add() {
- # make sure that we don't recursively install pathman with webi
- my_path="$PATH"
- export PATH="$HOME/.local/bin:$PATH"
-
- # install pathman if not already installed
- if [ -z "$(command -v pathman)" ]; then
- "$HOME/.local/bin/webi" pathman > /dev/null
- fi
-
- export PATH="$my_path"
-
- # in case pathman was recently installed and the PATH not updated
- mkdir -p "$_webi_tmp"
- # prevent "too few arguments" output on bash when there are 0 lines of stdout
- "$HOME/.local/bin/pathman" add "$1" | grep "export" 2>/dev/null >> "$_webi_tmp/.PATH.env" || true
-}
-
-# group common pre-install tasks as default
-webi_pre_install() {
- webi_check
- webi_download
- webi_extract
-}
-
-# move commands from the extracted archive directory to $HOME/.local/opt or $HOME/.local/bin
-webi_install() {
- if [ -n "$WEBI_SINGLE" ] || [ "single" == "${1:-}" ]; then
- mkdir -p "$(dirname $pkg_src_cmd)"
- mv ./"$pkg_cmd_name"* "$pkg_src_cmd"
- else
- rm -rf "$pkg_src"
- mv ./"$pkg_cmd_name"* "$pkg_src"
- fi
-}
-
-# run post-install functions - just updating PATH by default
-webi_post_install() {
- webi_path_add "$(dirname "$pkg_dst_cmd")"
-}
+ popd 2>&1 > /dev/null
+ }
+
+ # use 'pathman' to update $HOME/.config/envman/PATH.env
+ webi_path_add() {
+ # make sure that we don't recursively install pathman with webi
+ my_path="$PATH"
+ export PATH="$HOME/.local/bin:$PATH"
+
+ # install pathman if not already installed
+ if [ -z "$(command -v pathman)" ]; then
+ "$HOME/.local/bin/webi" pathman > /dev/null
+ fi