From 93d52d0f949cfc2b4d1a79276274dc7bac22b27c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Vallv=C3=A9=20Navarro?= <jvallve@iri.upc.edu>
Date: Thu, 20 Jan 2022 13:14:12 +0100
Subject: [PATCH] install libgsl if CSM

---
 install_wolf.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/install_wolf.sh b/install_wolf.sh
index 6fc0a50..df588df 100755
--- a/install_wolf.sh
+++ b/install_wolf.sh
@@ -323,6 +323,11 @@ if [ $INSTALL_LASER == "y" ]; then
       read INSTALL_CSM
    fi
    if [ $INSTALL_CSM == "y" ]; then
+      if [ "$UID" -eq 0 -o "$EUID" -eq 0 ]; then
+         apt install -y libgsl-dev
+      else
+         sudo apt install -y libgsl-dev
+      fi
       cd $DEPS_PATH
       git clone https://gitlab.iri.upc.edu/labrobotica/algorithms/csm.git
       cd csm
-- 
GitLab