From ca65a27b2867069793f370e77d17368454ae1dac Mon Sep 17 00:00:00 2001 From: Zhao Lei Date: Wed, 23 Sep 2015 17:41:33 +0800 Subject: [PATCH] Remove ineffective assignment in subcommand No need to assign return value to $rc in subcommand, value in subcommand can not pass to parent process, plus, it is never used. Change-Id: I5f478813c7472d3709e09ff88f2165d5f1cd9097 Signed-off-by: Zhao Lei --- labs/scripts/test/launch_instance.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labs/scripts/test/launch_instance.sh b/labs/scripts/test/launch_instance.sh index b19f9190..7855c7c4 100755 --- a/labs/scripts/test/launch_instance.sh +++ b/labs/scripts/test/launch_instance.sh @@ -200,7 +200,7 @@ function wait_for_neutron_agents { ( source "$CONFIG_DIR/admin-openstackrc.sh" neutron agent-list | sort > "$agent_list" - local out=$(grep " :-) " "$agent_list" || rc=$?) + local out=$(grep " :-) " "$agent_list") if [ -n "$out" ]; then echo echo "$out"