Skip to content

Commit

Permalink
fix: init ~/.config/envman/ during init phase (before pre-install)
Browse files Browse the repository at this point in the history
  • Loading branch information
coolaj86 committed Jul 16, 2024
1 parent 5c12cb1 commit b84808c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions _webi/package-install.tpl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,6 @@ __bootstrap_webi() {
webi_path_add() {
my_path="${1}"

fn_envman_init

# \v was chosen as it is extremely unlikely for a filename
# \1 could be an even better choice, but needs more testing.
# (currently tested working on: linux & mac)
Expand Down Expand Up @@ -399,7 +397,6 @@ __bootstrap_webi() {
export _webi_tmp="${_webi_tmp:-"$HOME/.local/opt/webi-tmp.d"}"

mkdir -p "${WEBI_PKG_PATH}"
mkdir -p "$HOME/.local/bin"
mkdir -p "$HOME/.local/opt"

if test -e ~/.local/bin; then
Expand All @@ -408,6 +405,7 @@ __bootstrap_webi() {
echo " Creating$(t_path ' ~/.local/bin')"
mkdir -p "$HOME/.local/bin"
fi
fn_envman_init

##
##
Expand Down

0 comments on commit b84808c

Please sign in to comment.