Skip to content

Commit

Permalink
Fix handling of update-alternatives
Browse files Browse the repository at this point in the history
Also make warning a little clearer using blank lines
  • Loading branch information
mikee47 committed Oct 5, 2021
1 parent ac16ae3 commit bdd535e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Tools/install.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ else
python3-setuptools \
wget

$PKG_INSTALL clang-format-8 || echo "Failed installing optional clang-format-8."
$PKG_INSTALL clang-format-8 || printf "\nWARNING: Failed to install optional clang-format-8.\n\n"
;;

fedora)
Expand Down Expand Up @@ -149,7 +149,9 @@ fi

set -e

sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-8 100
if [ -d "/usr/bin/clang-format-8" ]; then
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-8 100
fi

python3 -m pip install --upgrade pip -r $SMING_HOME/../Tools/requirements.txt

Expand Down

0 comments on commit bdd535e

Please sign in to comment.