From f9cf8e5e6bda339c66475f9607972531b7cc6a2d Mon Sep 17 00:00:00 2001
From: Rohit Gupta <rohit.gupta@eurecom.fr>
Date: Wed, 24 Aug 2016 04:07:07 +0200
Subject: [PATCH] fix for script that kills old programs

---
 cmake_targets/autotests/tools/remove_old_programs.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake_targets/autotests/tools/remove_old_programs.bash b/cmake_targets/autotests/tools/remove_old_programs.bash
index 3b677ca3ad..0c43a44538 100755
--- a/cmake_targets/autotests/tools/remove_old_programs.bash
+++ b/cmake_targets/autotests/tools/remove_old_programs.bash
@@ -13,7 +13,7 @@ pid="$$"
 echo "pid = $pid"
 
 echo "Killing programs now..."
-var=`ps -aux |grep -E -i $1 |awk '{print $2}'| tr '\n' ' ' | sed  "s/$pid/ /"`
+var=`ps -aux |grep -E -i '$1' |awk '{print $2}'| tr '\n' ' ' | sed  "s/$pid/ /"`
 echo $var 
 if [ -n "$var" ] ; then  sudo  kill -9 $var ; fi
 
-- 
GitLab