Skip to content

Commit 7a88eb0

Browse files
committed
fix: Global installations work a gain
1 parent b1509f2 commit 7a88eb0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pkg/lib/commands/do-global-install.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,21 @@ do-global-install() {
77
newindent.die "No arguments or flags must be specified"
88
fi
99

10-
# TODO: this should be changed when we make global location dot_basalt
1110
if ! rm -rf "$BASALT_GLOBAL_DATA_DIR/global/.basalt"; then
1211
print.indent-die "Could not remove global '.basalt' directory"
1312
fi
1413

15-
local -a deps=()
14+
local -a dependencies=()
1615
local dep=
1716
while IFS= read -r dep; do
1817
if [ -z "$dep" ]; then
1918
continue
2019
fi
2120

22-
deps+=("$dep")
21+
dependencies+=("$dep")
2322
done < "$BASALT_GLOBAL_DATA_DIR/global/dependencies"; unset dep
2423

25-
pkg.install_package "$BASALT_GLOBAL_DATA_DIR/global" 'lenient' "${deps[@]}"
24+
pkg.install_package "$BASALT_GLOBAL_DATA_DIR/global" 'lenient' "${dependencies[@]}"
25+
pkg.phase_local_integration_recursive "$BASALT_GLOBAL_DATA_DIR/global" 'yes' 'strict' "${dependencies[@]}"
26+
pkg.phase_local_integration_nonrecursive "$BASALT_GLOBAL_DATA_DIR/global"
2627
}

0 commit comments

Comments
 (0)