Limits variable scope

This commit is contained in:
André Carvalho 2015-09-18 13:49:05 -03:00
parent ab1bd5db53
commit 0213aafaad
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ setup() {
}
@test "[TAR] elasticsearch fails if java executable is not found" {
export JAVA=$(which java)
local JAVA=$(which java)
sudo chmod -x $JAVA
run "$ESHOME/bin/elasticsearch"

View File

@ -127,7 +127,7 @@ fi
@test "[$GROUP] fail if java executable is not found" {
[ "$GROUP" == "TAR PLUGINS" ] || skip "Test case only supported by TAR PLUGINS"
export JAVA=$(which java)
local JAVA=$(which java)
sudo chmod -x $JAVA
run "$ESHOME/bin/plugin"