From 7c016904d1eb5cb02038dfb8070ca61661bce531 Mon Sep 17 00:00:00 2001
From: Rohit Gupta <rohit.gupta@eurecom.fr>
Date: Tue, 15 Mar 2016 10:50:45 +0100
Subject: [PATCH] add sudo to deleting asn1 tmp dir

---
 cmake_targets/tools/build_helper | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmake_targets/tools/build_helper b/cmake_targets/tools/build_helper
index c8adf45257..82602b8cee 100755
--- a/cmake_targets/tools/build_helper
+++ b/cmake_targets/tools/build_helper
@@ -288,7 +288,7 @@ install_asn1c_from_source(){
     asn1_install_dir=$OPENAIR_DIR/cmake_targets/log/asn1c_install_log.txt
     echo_info "\nInstalling ASN1. The log file for ASN1 installation is here: $asn1_install_dir "
     (
-    rm -rf /tmp/asn1c-r1516
+    $SUDO rm -rf /tmp/asn1c-r1516
     mkdir -p /tmp/asn1c-r1516
     cd /tmp/asn1c-r1516
     svn co https://github.com/vlm/asn1c/trunk  /tmp/asn1c-r1516 -r 1516 
@@ -397,4 +397,4 @@ if [[ $ip =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
 fi
 
 return $stat
-}
\ No newline at end of file
+}
-- 
GitLab