Skip to content
Snippets Groups Projects
Commit 60016442 authored by Alejandro Lopez Gestoso's avatar Alejandro Lopez Gestoso
Browse files

Merge branch 'topic_slash_check' into 'master'

Topic slash check

See merge request labrobotica/ros/iri_core/scripts-catkin!2
parents a05169c2 ceed291c
No related branches found
No related tags found
1 merge request!2Topic slash check
......@@ -40,7 +40,12 @@ do
ros_pkg=$OPTARG
;;
a)
action_name=$OPTARG
if echo "$OPTARG" | grep -q "/"; then
kill_exit "ERROR: argument -$OPTION can't contain slash '/' characters"
exit
else
action_name=$OPTARG
fi
;;
m)
action_file=$OPTARG
......
......@@ -40,7 +40,12 @@ do
ros_pkg=$OPTARG
;;
s)
service_name=$OPTARG
if echo "$OPTARG" | grep -q "/"; then
kill_exit "ERROR: argument -$OPTION can't contain slash '/' characters"
exit
else
service_name=$OPTARG
fi
;;
m)
srv_file=$OPTARG
......
......@@ -41,7 +41,12 @@ do
ros_pkg=$OPTARG
;;
t)
topic_name=$OPTARG
if echo "$OPTARG" | grep -q "/"; then
kill_exit "ERROR: argument -$OPTION can't contain slash '/' characters"
exit
else
topic_name=$OPTARG
fi
;;
m)
msg_file=$OPTARG
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment