Skip to content

Commit 9d7a3f4

Browse files
committed
f
1 parent 0bd7b84 commit 9d7a3f4

1 file changed

Lines changed: 20 additions & 14 deletions

File tree

install.sh

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,24 +58,30 @@ echo -e "\e[32m Done.\e[0m"
5858
if [ ! -d "$dir" ] ; then
5959
echo ""
6060

61-
echo "Installing apt packages"
62-
(sudo apt-get install -qq -y \
63-
git \
64-
python3-pip \
65-
libopenblas-dev \
66-
libgeos-c1v5 \
67-
libgeos-dev \
68-
python3-venv \
69-
libssl-dev \
70-
hp2xx \
71-
> /dev/null) & spinner
72-
if [ $? -eq 0 ]; then
61+
echo "Installing apt packages"
62+
63+
LC_ALL=C LANG=C sudo apt-get install -qq -y \
64+
git \
65+
python3-pip \
66+
libopenblas-dev \
67+
libgeos-c1v5 \
68+
libgeos-dev \
69+
python3-venv \
70+
libssl-dev \
71+
hp2xx \
72+
> /dev/null 2>&1 &
73+
apt_pid=$!
74+
75+
spinner $apt_pid
76+
wait $apt_pid
77+
install_status=$?
78+
79+
if [ $install_status -eq 0 ]; then
7380
echo -e "\e[32m Packages installed successfully.\e[0m"
7481
else
75-
echo -e "\e[1;31m Error: Failed to install packages. Exiting\e[0m">&2
82+
echo -e "\e[1;31m Error: Failed to install packages. Exiting\e[0m" >&2
7683
exit 1
7784
fi
78-
echo ""
7985

8086
echo "Downloading Web Plotter for $BRANCH from Github"
8187
if git ls-remote --exit-code --heads $git "$BRANCH" > /dev/null; then

0 commit comments

Comments
 (0)