@@ -5,19 +5,11 @@ set -eu
5
5
HERE=$( dirname ${BASH_SOURCE:- $0 } )
6
6
pushd " $( dirname " $( dirname $HERE ) " ) " > /dev/null
7
7
8
- echo " before PATH=$PATH "
9
-
10
8
# Source the env files to pick up common variables.
11
9
if [ -f $HERE /env.sh ]; then
12
10
. $HERE /env.sh
13
11
fi
14
12
15
- echo " after PATH=$PATH "
16
- echo " PYMONGO_BIN_DIR=$PYMONGO_BIN_DIR "
17
- exit 1
18
- _BIN_DIR=${PYMONGO_BIN_DIR:- $HOME / .local/ bin}
19
- export PATH=" $PATH :${_BIN_DIR} "
20
-
21
13
# Helper function to pip install a dependency using a temporary python env.
22
14
function _pip_install() {
23
15
_HERE=$( dirname ${BASH_SOURCE:- $0 } )
@@ -42,9 +34,8 @@ function _pip_install() {
42
34
echo " Installing $2 using pip... done."
43
35
}
44
36
45
-
46
37
# Ensure just is installed.
47
- if ! command -v just > /dev/null 2>&1 ; then
38
+ if ! command -v just & > /dev/null; then
48
39
# On most systems we can install directly.
49
40
_TARGET=" "
50
41
if [ " Windows_NT" = " ${OS:- } " ]; then
@@ -58,8 +49,8 @@ if ! command -v just >/dev/null 2>&1; then
58
49
echo " Installing just... done."
59
50
fi
60
51
61
- # Install uv.
62
- if ! command -v uv > /dev/null 2>&1 ; then
52
+ # Ensure uv is installed .
53
+ if ! command -v uv & > /dev/null; then
63
54
echo " Installing uv..."
64
55
# On most systems we can install directly.
65
56
curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR=" $_BIN_DIR " INSTALLER_NO_MODIFY_PATH=1 sh || {
0 commit comments