Skip to content

Commit

Permalink
Merge pull request #1874 from cincuranet/check-lttng
Browse files Browse the repository at this point in the history
Check whether LTTng is installed and if so, don't attempt to install it.
  • Loading branch information
brianrob authored May 26, 2023
2 parents 873a2d0 + d57c8fd commit bb24ad9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/perfcollect/perfcollect
Original file line number Diff line number Diff line change
Expand Up @@ -1249,6 +1249,16 @@ InstallLTTng_Ubuntu()

InstallLTTng()
{
if command -v lttng &> /dev/null
then
lttngInstalled=1

BlueText
echo "LTTng already installed."
ResetText
return
fi

if [ "$(IsUbuntu)" == "1" ]
then
InstallLTTng_Ubuntu
Expand Down

0 comments on commit bb24ad9

Please sign in to comment.