Skip to content

Commit b4181c6

Browse files
committed
update install.sh
1 parent 6920a43 commit b4181c6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/install.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,10 @@ fi
8888
if [ "${mode}" = "none" ] && [ "$backup" = "none" ]; then # no mode or backup was provided
8989
echo "Running cli installer"
9090
wget https://raw.githubusercontent.com/${author}/${repo}/${branch}/scripts/install.py
91-
python3 -m pip install --upgrade pip
91+
if ! command -v pip3 &> /dev/null; then
92+
echo "pip not found. Installing pip..."
93+
python3 -m pip install --upgrade pip
94+
fi
9295
pip3 install questionary==2.1.0 --break-system-packages
9396
python3 install.py
9497
pip3 uninstall questionary -y
@@ -125,7 +128,6 @@ if [[ "$OSTYPE" =~ darwin.* ]]; then
125128
mkdir -p ${SOURCES_DIR}
126129
fi
127130

128-
129131
if [ ! -f ~/.config/pip/pip.conf ]; then # create pip config
130132
mkdir -p ~/.config/pip
131133
cat > ~/.config/pip/pip.conf <<EOF
@@ -134,7 +136,6 @@ break-system-packages = true
134136
EOF
135137
fi
136138

137-
138139
# check TON components
139140
file1=${BIN_DIR}/ton/crypto/fift
140141
file2=${BIN_DIR}/ton/lite-client/lite-client

0 commit comments

Comments
 (0)